SetDoorLocation: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Teleports a door to a specified location.}} {{FuncSyntax|SetDoorLocation(door, x, y, z)}} {{FuncParameters}} {{FuncParam|door..." |
No edit summary |
||
Line 14: | Line 14: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetDoorLocation(doorId, 0.0, 0.0, 0.0) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{DoorFunctions}} |
Revision as of 09:20, 14 December 2019
Description
Teleports a door to a specified location.
Syntax
SetDoorLocation(door, x, y, z)
Parameters
- door
The door identifier. - x
World X location. - y
World Y location. - z
World Z location.
Return Value
- Returns true on success. false if the door does not exist.
Example
SetDoorLocation(doorId, 0.0, 0.0, 0.0)