EvilEngine/BUTN
(Redirected from BUTN)
BUTN | |
---|---|
Button | |
Type | Entity |
Base Type | 0x18 |
Games used | Night of 100 Frights Battle for Bikini Bottom |
Source code | zEntButton.h |
This asset defines an entry for buttons such as switches and pressure plates.
Format
Buttons are entity assets, so they start with their 0x54 byte header, then are followed by:
Offset | Type | Variable | Description |
---|---|---|---|
0x54 | AssetID | modelPressedInfoID | Defaults to ModelAssetID in the placeable header (same model for pressed and unpressed). |
0x58 | int | actMethod |
|
0x5C | int | initButtonState | |
0x60 | int | isReset | 0 (disabled) or 1 (enabled). If this is enabled, the button will automatically unpress itself after resetDelay. (Only works on Button, not Pressure Plate.) Useful for timed challenges. |
0x64 | float | resetDelay | (seconds) Time to wait after being pressed to unpress. |
0x68 | int | buttonActFlags | This bitmask specifies what can press the button.
|
0x6C | Motion | Motion | Always type 4 (Mechanism) |
Events | |||
0x9C | Event[numberOfEvents] | Events | BFBB |
0xA8 | Event[numberOfEvents] | Events | Movie |