Skip to main content

TeleportEffectArgument

A struct in Root.Township, Alta.Caves.

What the server sends to the chunk when a player uses a cave teleporter, so clients play the depart or arrive effect.

Constructors​

MemberWhat it is
TeleportEffectArgument(bool isDeparture, int layer, Vector3 position, uint teleportingPlayer)Creates a TeleportEffectArgument from isDeparture, layer, position and teleportingPlayer.

Fields​

MemberWhat it is
bool isDepartureTrue for the effect where the player leaves, false for where they arrive.
int layerDestination layer; 0 is the surface, anything else a cave. Picks the cave or surface effect.
Vector3 positionWhere to play the effect: the player's feet on departure, the destination on arrival.
uint teleportingPlayerId of the player being teleported.

Used in​

Members of other types that take, return or hold a TeleportEffectArgument: