Teleport
Teleport¶
Moves the player from one map to another, or to an existing location on the same map without reloading it.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Map ID | The ID of the map to teleport to. | 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 at Position (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 Using Global Variables for Map and Coordinates¶
This command teleports the player to a variable location, determined by Global Variables 0 through 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"}