game_object:Teleport

From Battlepedia
Jump to navigationJump to search

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.

Format

Offset Type Variable Description
0x10 AssetID (Marker) marker Position of the Teleport Box.
0x14 int opened 0 or 1.
0x18 int launchAngle Rotation (in degrees) to set the player when hopping out of the Teleport Box.
0x1C int camAngle Rotation (in degrees) to set the camera.
0x20 AssetID (game_object:Teleport) 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