Class TeleportAction
ECA action that teleports the interacting player via a ITeleporter. If the teleporter has a Target transform set, the player is moved to that world position and rotation. Otherwise the player is teleported by scene name via Teleport(string). Server-only.
[Serializable]
public class TeleportAction : BaseAction, IAction
- Inheritance
-
TeleportAction
- Implements
- Inherited Members
Methods
Execute(ICharacter, EventData)
Moves the player to the teleporter's target position/rotation or triggers a named teleport. No-op if the player is already teleporting.
public override void Execute(ICharacter initiator, EventData eventData)
Parameters
initiatorICharactereventDataEventData