SetDoorLocation: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 16: Line 16:
== Example ==
== Example ==
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
SetDoorLocation(doorId, 0.0, 0.0, 0.0)
SetDoorLocation(doorId, 0.0, 0.0, 0.0, 90.0)
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{DoorFunctions}}
{{DoorFunctions}}

Revision as of 18:27, 5 March 2020

SetDoorLocation

Type: Function
Context: Server
Introduced: v1.0

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.
  • rotation
    The yaw rotation of this door.

Return Value

  • Returns true on success. false if the door does not exist.

Example

SetDoorLocation(doorId, 0.0, 0.0, 0.0, 90.0)

See also