EvilEngine/DYNA/game object:Teleport: Difference between revisions

no edit summary
(Created page with "<onlyinclude> {{#vardefine:name|game_object:Teleport}}<nowiki/> {{#vardefine:version|1 or 2}}<nowiki/> {{#vardefine:hash|0x70ADB7F9}}<nowiki/> {{#vardefine:games|BFBB TSSM}}<n...")
 
No edit summary
Line 4:
{{#vardefine:hash|0x70ADB7F9}}<nowiki/>
{{#vardefine:games|BFBB TSSM}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEntTeleportBox.h zEntTeleportBox.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoDynaInfobox}}
 
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 [[MRKR|Marker]], which the game uses to place an instance of the teleportation_box_bind [[MODL|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.
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || [[AssetID]] ([[MRKR|Marker]]) || '''marker''' || Position of the Teleport Box.
|-
| 0x04 || int || '''opened''' || 0 or 1.
|-
| 0x08 || int || '''launchAngle''' || Rotation (in degrees) to set the player when hopping out of the Teleport Box.
|-
| 0x0C || int || '''camAngle''' || Rotation (in degrees) to set the camera. '''Not present in version 1 in BFBB, or in Movie regardless of version'''.
|-
| 0x10 || [[AssetID]] ([[DYNA\game_object:Teleport​|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
 
{{DynaAssets}}