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 the teleporter's key via Teleport(string), which the character system resolves against the world scene details cache: a same-scene destination is a local move, any other is a scene transfer. Server-only.
[Serializable]
public class TeleportAction : BaseAction, IAction
- Inheritance
-
TeleportAction
- Implements
- Inherited Members
Remarks
No combat gate, on purpose. A same-scene teleporter is a legitimate way to leave a fight (decided 2026-09-08); fast travel and cross-scene transfers are not, and they gate combat themselves.
Every refusal here answers the owner with a toast. The interaction handler in front of this action already refuses dead, teleporting and unloaded characters silently at Debug level; what this action can refuse on its own is a broken teleporter or a character mid-transfer, and neither is something the player can see.
Methods
Execute(ICharacter, EventData)
Moves the player to the teleporter's target position/rotation or triggers a keyed teleport.
public override void Execute(ICharacter initiator, EventData eventData)
Parameters
initiatorICharactereventDataEventData