A teleporter.
Spawnable via "Entity.Teleporter".
public void CreateTarget(LuaVector3 position, LuaVector3 rotation)
(Client) Creates and sets a target for this teleporter.
Arguments
(Vector3) The position of the new target. [position]
(Vector3) The rotation of the new target (in eulers). [rotation]
public TransformWrapper GetTarget()
(Client) Get the target of this teleporter.
Returns: (Transform) The teleporter target.
public void SetTarget(TransformWrapper target)
(Client) Set the target of this teleporter.
Arguments
public LuaVector3 GetTargetPosition()
(Client) Gets the position of the teleporter's target.
Returns: (Vector3) The teleporter's targets position.
public void SetTargetPosition(LuaVector3 position)
(Client) Sets the position of the teleporter's target.
Arguments
public bool GetActive()
(Client) Gets whether this teleporter is active.
Returns: (bool) Whether this teleporter is active.
public void SetActive(bool active, bool animated = true)
(Client) Sets whether this teleporter is active.
Arguments
(bool) Whether this teleporter is active. [active]
(bool) Whether to play an activation/deactivation animation. [animated]