teleport
The teleport script command is used to move the caller or player to a new position or area for an entity. The special target behind can be used to teleport behind the player.
By default, the -l flags only sets the currently available area transition which causes a stair icon that the player must click to actually move to the given area. Use the -n flag to immediately transition the player to the new area. The available area transition is automatically reset when the player exits the current zone.
Usage
teleport [-api] [a?angle*] [!i?target]
teleport [-a] [a?angle*] behind
teleport -l[an] [a?angle*] <area*> <target>
Context: Any Entity
Flags:
-a: Set a new view direction for the player (even without -l or -p)
-l: Make an area transition available to the player
-n: Immediately transition the player to the given level
-p: Teleport the player instead of the calling entity
-i: Teleport the entity to its initial position
Parameters:
| Parameter | Type | Description |
|---|---|---|
angle (requires -a) |
number or variable |
View direction to set for the player |
area (requires -l) |
int or variable |
The number of the area to transition to |
target (if not -i) |
entity |
The entity whose position we should teleport to |
Area numbers
| Area | Map level | |
|---|---|---|
| 0 | Castle of Arx | 0 |
| 8 | Council Room | 0 |
| 11 | City of Arx | 0 |
| 12 | Area 12 | 0 |
| 1 | Area 1 | 1 |
| 13 | Crystal Caves | 1 |
| 14 | Temple of Akbaa | 1 |
| 2 | Area 2 | 2 |
| 15 | Area 15 | 2 |
| 3 | Area 3 | 3 |
| 16 | Rebel Camp | 3 |
| 17 | Crypt I | 3 |
| 20 | Underground Lake | 3 |
| 4 | Ylside Bunker | 4 |
| 18 | Caves | 4 |
| 19 | Crypt II | 4 |
| 5 | Area 5 | 5 |
| 21 | Crypt III | 5 |
| 6 | Mushroom Forest | 6 |
| 22 | Crypt IV | 6 |
| 7 | Dwarven Mines | 7 |
| 23 | Crypt V | 7 |