Powerup Button in 9 setters (old)
Note:
- All setters at priority 0. Other priority values untested.
- Button has
interactionType=Toggle
and input is MyButton - Works but unoptimized
POWERUP_DURATION = 3
[Constant] Set the length of time which the power is available for.
CHARGE_DURATION = 5
[Constant] Set the length of time which is needed for cooldown.
MyPowerupActiveTimer = smooth(MyPowerupActive=1 ? 999999 : 0, MyPowerupActive=1 ? 1 : 999999)
Time that the power is active. Resets to 0 once the power deactivates.
MyPowerupChargeTimer = smooth(MyPowerupActive=0&Time>0.1 ? 999999 : 0, MyPowerupActive=0&Time>0.1 ? 1 : 999999)
Time since the power last deactivated. Resets to 0 once the power activates again.
MyPowerupActive = 1
WHEN MyButton=1 & MyPowerupReady
Sets the active flag to 1 when the button is pressed and the power is ready.
MyPowerupActive = 0
WHEN MyPowerupActiveTimer>POWERUP_DURATION
Sets the active flag to 0 when the power time is up.
MyButton = 1
WHEN MyPowerupActive=1&MyPowerupActiveTimer<POWERUP_DURATION
Enforces the button pressed condition when the power is active.
MyButton = 0
WHEN (MyPowerupActive=1&MyPowerupActiveTimer>POWERUP_DURATION) | (MyPowerupActive=0&MyPowerupChargeTimer<CHARGE_DURATION)
Enforces the button released condition when the power expires, and during cooldown.
Specifications
General Characteristics
- Predecessor Button unpresses itself 2
- Created On Android
- Wingspan 3.3ft (1.0m)
- Length 9.3ft (2.8m)
- Height 10.0ft (3.1m)
- Empty Weight 660lbs (299kg)
- Loaded Weight 660lbs (299kg)
Performance
- Wing Loading N/A
- Wing Area 0.0ft2 (0.0m2)
- Drag Points 881
Parts
- Number of Parts 10
- Control Surfaces 0
- Performance Cost 78