GetDoorLocation

From Onset Developer Wiki
Revision as of 20:45, 7 March 2020 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
GetDoorLocation

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

Description

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

Syntax

GetDoorLocation(door)

Parameters

  • door
    The door specifier

Return Value

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

Example

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

See also