EvilEngine/BUTN
BUTN
This asset defines an entry for buttons such as switches and pressure plates.
Format
Buttons are placeable assets, so they start with their 0x54 byte header, then are followed by:
Offset | Type | Description |
---|---|---|
0x54 | AssetID | Pressed model. Defaults to the model in the placeable header |
0x58 | int | Type of button.
|
0x5C | int | null |
0x60 | int | Hold Enabled. 0 (disabled) or 1 (enabled). Only applies to buttons of type Switch. If enabled, whenever the button is pressed, it stays pressed for Hold Length, then it unpresses. Useful for time challenges or any situation where you want the button to only stay pressed for a certain amount of time. |
0x64 | float | Hold Length in seconds. Only applies to buttons of type Switch. |
0x68 | int | Hit Mask. This specifies the different ways the button can be hit. If this is 0, the button by default doesn't react to any Hit events. For each hit type you include in this mask, a corresponding Hit event will automatically be set up to fire ButtonPress for you. For example, if the mask includes Bubble Spin and Bubble Bowl, the button will automatically fire ButtonPress when it receives either Hit Melee or Hit Bubble Bowl.
|
0x6C | byte[8] | Unknown. Usually 4,0,0,4,2,1,1,0 |
0x74 | float | Y Offset of button during its pressed state. |
0x78 | float | Transition time in seconds between its unpressed and pressed states. |
0x7C | float[2] | Something to do with the transition, affects easing in/out. |
0x84 | int[6] | null |
Events | ||
0x9C | Event[numberOfEvents] | Events |