EvilEngine/BUTN

Revision as of 09:07, 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 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.
  • 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