EvilEngine/DYNA/game object:Teleport
< EvilEngine | DYNA
game_object:Teleport | |
---|---|
Version | 1 or 2 |
Hash | 0x70ADB7F9 |
Games used | Battle for Bikini Bottom The SpongeBob SquarePants Movie |
Source code | zEntTeleportBox.h |
This asset defines a Teleport Box, which is used for quick travel to another area within a level. Typically, they are defined in pairs, where the 1st one warps to the 2nd one and the 2nd one warps back to the 1st one. However, a Teleport Box can warp to any other Teleport Box in the level, and therefore any number of Teleport Boxes can be linked together.
Its position is defined by a Marker, which the game uses to place an instance of the teleportation_box_bind model (boot.hip) in the world. It is not possible to change the rotation or scale of a Teleport Box.
Note that you do not need to manually create a trigger around the teleport box to open it, it opens automatically when the player walks close up to it.
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | AssetID | marker | Position of the Teleport Box. |
0x04 | uint | opened | 0 or 1. |
0x08 | uint | launchAngle | Rotation (in degrees) to set the player when hopping out of the Teleport Box. |
0x0C | uint | camAngle | Rotation (in degrees) to set the camera. Not present in version 1 in BFBB, or in Movie regardless of version. |
0x10 | AssetID | targetID | Teleport Box to teleport the player to. The other Teleport Box must be opened before the player will be able to use this one. |
Events
- Open Teleport Box
- Close Teleport Box