prop_floor_button issues [SOLVED!]

Avatar
Lpfreaky90
2,842 Posts
Posted Nov 26, 2011
Hey,

In my level I have a floor button, it regulates two fizzlers, fizzler 1 (f1) and fizzler 2 (f2).
It has the following outputs:
Onpressed: f1 activate 0.00.
Onpressed: f2 deactivate 0.30.
OnUnpressed f2 activate 0.00.
OnUnpressed f2 deactivate 0.30.

Problem: When a cube is put on the button and instantly pulled off, both fizzlers deactivate, breaking my puzzle.

Any suggestions on how to fix this? :notworthy:
~Lp

Advertisement
Registered users don’t see ads! Register now!
Avatar
Robdon
204 Posts
Posted Nov 26, 2011
Replied 19 minutes later
Hi,

You need to use Relays and also the CancelPending action for relays.

Put in 2 Replays, one for the onpressed and one for onunpressed, have the button fire each relay to do each of the activates and deactivates.

In each relay put the first output as 'CancelPending' for the opposite relay, and make the activate action 0.01 delay so its executes after the cancelpending.

Then it will cancel any outstanding commands from the other relay, if things happen quickly...

Rob.

Avatar
Lpfreaky90
2,842 Posts
Posted Nov 27, 2011
Replied 13 hours later
Thanks, that worked :biggrin: