EvilEngine/BUTN: Difference between revisions

Battlepedia>Seil
Battlepedia>Seil
Line 13:
! Offset !! Type !! Description
|-
| 0x54 || [[AssetID]] || '''Pressed Model''' model. Defaults to the modelModelAssetID in the placeable header (same model for pressed and unpressed).
|-
| 0x58 || int || '''Type''' of button.
* 0 = SwitchButton - Button staysStays pressed afterupon being hit. (Also has a flashing effect)
* 1 = Pressure Plate - Button staysStays pressed until it stops being hit, then it becomes unpressedunpresses.
|-
| 0x5C || int || null
|-
| 0x60 || int || '''Hold EnabledUnpress'''. 0 (disabled) or 1 (enabled). OnlyIf appliesthis to buttons of type Switch. Ifis enabled, whenever the button iswill pressed,automatically itunpress staysitself pressed forafter '''HoldUnpress LengthTimeout''', then it unpresses. Useful(Only forworks timeon challengesButton, ornot anyPressure situationPlate.) where you want the button to only stay pressedUseful for atimed certain amount of timechallenges.
|-
| 0x64 || float || '''HoldUnpress LengthTimeout''' in (seconds). Only appliesTime to buttonswait ofafter typebeing pressed to Switchunpress.
|-
| 0x68 || int || '''Hit Mask'''. This bitmask specifies what can press the button.
* 0 - Bubble Spin/Sliding (SpongeBob)
* 1 - Bubble Bounce
* 2 - Bubble Bash
* 3 - [[BOUL|Boulder]]/Bubble Bowl/Boulder
* 4 - Cruise Bubble
* 5 - Bungee
Line 36:
* 8 - Patrick Slam
* 9 - Unknown
* 10 - (Pressure Plate) Player Stand on Pressure Plate
* 11 - (Pressure Plate) Enemy Stand on Pressure Plate
* 12 - (Pressure Plate) [[BOUL|Boulder]]/Bubble Bowl/Boulder on Pressure Plate
* 13 - Any Throwable on (Pressure Plate (only) Stone Tiki auto-target)
* 14 - Sandy Melee/Sliding
* 15 - Patrick Melee/Sliding
* 16 - Any Throwable on (Pressure Plate (only) Throw Fruit auto-target)
* 17-31 - Unused
|-
| 0x6C || byte[8] || Unknown. Usually 4,0,0,4,2,1,1,0
|-
| 0x74 || float || '''YPressed OffsetHeight''' (local units). Height of the button during itswhen pressed. This is affected by local rotation and statescale.
|-
| 0x78 || float || '''Transition timeTime''' in (seconds). betweenTime itsit unpressedtakes andto move between pressed statesand unpressed height.
|-
| 0x7C || float[2] || '''Transition Ease In/Out modifiersTime''' (seconds). Easing in duration, relative to unpressed height. Must be >= 0 and <= Transition Time.
|-
| 0x80 || float || '''Ease Out Time''' (seconds). Easing out duration, relative to pressed height. Must be >= 0 and <= Transition Time.
|-
| 0x84 || int[6] || null
Anonymous user