1 funnel, 2 buttons

Avatar
solix
11 Posts
Posted Aug 21, 2012
Hi, I have one funnel and two buttons in my map. The first (floor) button turn on and off the funnel and the second (stand) button toggles the direction of the funnel.
Important : let say the funnel is blue and you remove a cube from the first button, then the funnel turns off. You press the other button and nothing happens, but when you re-place the cube onto the first button the funnel must be orange now...

I successfully created the toggling mec with a logic_branch connected to itself but I can't figure out how to add the powering button.

Any idea on how to do it ?

Advertisement
Registered users don’t see ads! Register now!
Avatar
Skotty
671 Posts
Posted Aug 21, 2012
Replied 39 minutes later
I uploaded a VMF that does exactly what you want.

The trick is: The Tractor Beam's direction can be changed while it is disabled. So you just need to enable and disable it with the floor button and change its direction with the logic_branch, ToggleTest with the stand button.

Attachments
Test_ToggleFunnel.vmf
0.02 MB 24 downloads
Avatar
solix
11 Posts
Posted Aug 21, 2012
Replied 34 minutes later
Thanks, I thought disabling it would make it disappear... Simpler than I expected.