EvilEngine/BUTN
This asset defines an entry for buttons such as switches and pressure plates.
BUTN | |
---|---|
Button | |
Type | Placeable |
Games used | The Incredibles |
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 bitmask specifies what can press the button.
|
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] | Transition Ease In/Out modifiers. |
0x84 | int[6] | null |
Events | ||
0x9C | Event[numberOfEvents] | Events |