EvilEngine/BUTN

Revision as of 08:45, 15 September 2018 by Battlepedia>Seil

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.
  • 0 = Switch - Button stays pressed after being hit. (Also has a flashing effect)
  • 1 = Pressure Plate - Button stays pressed until it stops being hit, then it becomes unpressed.
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.
  • 1 - Bubble Spin
  • 2 - Bubble Bounce
  • 4 - Bubble Bash
  • 8 - Bubble Bowl
  • 16 - Cruise Bubble
  • ...
0x6C byte[8] Unknown.
0x74 Vector2 Unknown.
0x7C int[8] Unknown (null?)
Events
0x9C Event[numberOfEvents] Events

Events