EvilEngine/TRIG: Difference between revisions

no edit summary
Battlepedia>Igorseabra4
No edit summary
Battlepedia>Igorseabra4
No edit summary
Line 3:
 
==Format==
Triggers are [[Placeable Asset|placeable assets]], so they start with their 0x54 byte header, then are followed by:
 
{| class="wikitable"
! Offset !! Type !! Description
|-
! colspan="3" | Header
|-
| 0x00 || [[AssetID]] || '''Asset ID'''.
|-
| 0x04 || byte || '''Asset type'''. 0x01 for TRIG.
|-
| 0x05 || byte || '''Number of Events'''.
|-
| 0x06 || short || '''Flags'''. Usually 00 1D
|-
! colspan="3" | Trigger
|-
| 0x08 || byte || Unknown. 0 or 1.
|-
| 0x09 || byte || Shape. 0 = Box, 1 = Sphere.
|-
| 0x0A || byte || Unknown. Always 0.
|-
| 0x0B || byte || Unknown. Always 0.
|-
| 0x0C || int || null
|-
| 0x10 || int || null. Not present in beta Goo Lagoon.
|-
| 0x14 || Vector3 || '''Rotation'''. This is actually used. The box trigger is rotated by its center point after placement. No effect on sphere trigger.
|-
| 0x20 || Vector3 || '''Position'''. Probably unused.
|-
| 0x2C || Vector3 || '''Scale'''. Unused.
|-
| 0x38 || Vector4 || '''Color'''. Unused.
|-
| 0x48 || float || '''Unknown'''
|-
| 0x4C || [[AssetID]] || '''Unknown'''
|-
| 0x50 || int || null
|-
| 0x54 || Vector3 || Trigger Position 0
Line 64 ⟶ 28:
| 0x94 || Event[numberOfEvents] || '''[[Events]]'''
|}
 
* Trigger types (offset 0x09):
** 0 - Box
** 1 - Sphere
 
 
* Trigger Position 0