EvilEngine/BUTN: Difference between revisions
Content added Content deleted
Battlepedia>Seil (→Format) |
Battlepedia>Seil No edit summary |
||
Line 14: | Line 14: | ||
* 1 = Pressure Plate - Button stays pressed until it stops being hit, then it becomes unpressed. |
* 1 = Pressure Plate - Button stays pressed until it stops being hit, then it becomes unpressed. |
||
|- |
|- |
||
| 0x5C || int || |
| 0x5C || int || null |
||
|- |
|- |
||
| 0x60 || int || '''Timeout Enabled'''. 0 (disabled) or 1 (enabled). Only applies to buttons of type Switch. If enabled, whenever the button is pressed, it automatically unpresses after '''Timeout Length'''. Useful for time challenges or any situation where you want the button to reset after a certain amount of time. |
| 0x60 || int || '''Timeout Enabled'''. 0 (disabled) or 1 (enabled). Only applies to buttons of type Switch. If enabled, whenever the button is pressed, it automatically unpresses after '''Timeout Length'''. Useful for time challenges or any situation where you want the button to reset after a certain amount of time. |
Revision as of 08:45, 15 September 2018
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 | ? |
0x58 | int | Type of button.
|
0x5C | int | null |
0x60 | int | Timeout Enabled. 0 (disabled) or 1 (enabled). Only applies to buttons of type Switch. If enabled, whenever the button is pressed, it automatically unpresses after Timeout Length. Useful for time challenges or any situation where you want the button to reset after a certain amount of time. |
0x64 | float | Timeout Length in seconds. Only applies to buttons of type Switch. |
0x68 | int | Hit Mask. This automatically sets up specific types of Hit events to fire ButtonPress for you. For example, if the mask includes Bubble Spin and Bubble Bowl, the button will automatically receive Hit Melee and Hit Bubble Bowl, and send ButtonPress to itself.
|
0x6C | byte[8] | Unknown. |
0x74 | Vector2 | Unknown. |
0x7C | int[8] | Unknown (null?) |
Events | ||
0x9C | Event[numberOfEvents] | Events |