Teleport

Teleport

Teleport moves the player from one map to another. In addition to teleporting to different maps, it can also teleport the player to an existing location in the same map, without reloading it.

Properties

System

Name Explanation Type
Map ID The ID of the map. Variable or Value
X The x coordinate on the map. Variable or Value
Y The y coordinate on the map. Variable or Value
Z The z coordinate on the map. Variable or Value

Examples

Teleport to Map 0 (5, 0, 5)

This command teleports the player to a fixed location, without any variable data.

{"Data":{"MapID":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"X":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"5","VariableIndex":0,"Metadata":null},"Y":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Z":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"5","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapTeleportCommand"}

Teleport to Map [Global Variable 0] ([Global Variable 1], [Global Variable 2], [Global Variable 3])

This command teleports the player to a variable location, determined by Global Variables 0 - 3.

{"Data":{"MapID":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"X":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":1,"Metadata":null},"Y":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":2,"Metadata":null},"Z":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":3,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapTeleportCommand"}