GetDoorLocation: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 19: Line 19:


{{RelatedFunctions}}
{{RelatedFunctions}}
* [[CreateDoor]]
{{DoorFunctions}}
* [[DestroyDoor]]
* [[SetDoorOpen]]
* [[IsDoorOpen]]
* [[GetAllDoors]]
* [[GetDoorCount]]
* [[GetDoorModel]]
* [[SetDoorLocation]]
* [[GetDoorLocation]]
* [[SetDoorDimension]]
* [[GetDoorDimension]]

Revision as of 14:00, 1 January 2020

GetDoorLocation

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Gets the XYZ vector of the specified door created earlier with CreateDoor.

Syntax

GetDoorLocation(door)

Parameters

  • door
    The door specifier

Return Value

  • the x, y, z vectors of the door location.

Example

AddCommand("doorlocation", function(playerid)
	local X, Y, Z = GetDoorLocation(doorid)
	AddPlayerChat(player, "Door location: "..X..", "..Y..", "..Z)
end)

See also