SetDoorLocation

From Onset Developer Wiki
Revision as of 10:15, 1 July 2021 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SetDoorLocation

Type: Function
Context: Server
Introduced: v1.0

Description

Teleports a door to a specified location.

Syntax

SetDoorLocation(door, x, y, z, rotation)

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