Lagaffe
Resource contributor
- Messages
- 864
- Country
Hello,
In my last creation, I let the user assign the EXTEND SPOILERS and RETRACT SPOILERS commands to keyboard or joystick keys and I would like to retrieve these events in a gauge to be able to perform additional processing.
Do theses actions correspond to other events than the ones mentioned above?
In my last creation, I let the user assign the EXTEND SPOILERS and RETRACT SPOILERS commands to keyboard or joystick keys and I would like to retrieve these events in a gauge to be able to perform additional processing.
I have tried the SPOILERS_ON, SPOILERS_OFF and SPOILERS_TOGGLE events but it doesn't seem to work.<Update id="EVENEMENTS">
<Script>
(>K:SPOILERS_ON) if{ -1 (>LBY_FloatsSwitch, enum) }
(>K:SPOILERS_OFF) if{ 1 (>LBY_FloatsSwitch, enum) }
(>K:SPOILERS_TOGGLE) if{ (LBY_FloatsSwitch, enum) -1 == if{ 1 (>LBY_FloatsSwitch, enum) } els{ -1 (>LBY_FloatsSwitch, enum) } }
</Script>
</Update>
Do theses actions correspond to other events than the ones mentioned above?
Last edited: