RelFexive
05-11-2002, 05:21 PM
OK, so here's the deal:
I have a func_door that goes up and down to act as a lift. It's controlled by two func_usable 'buttons' tied to trigger_multiple boxes aimed at the 'buttons' and targetted on the lift.
Each 'button' is in fact two brushes overlaying each other, one set to "always_on" and one to "start_off" (each with a different texture), so that when you press the 'button' it switches between the two brushes to show it has been activated.
The thing is, how do you make the 'button' switch back automatically to the off state once it is pressed? In other words, the 'button' starts off black and turns green when you press it, but at the moment it stays green until you press it again; how do you make it switch back after a few seconds to the original, black look?
And secondly, how do you make the lift stay in the up position until either button is pressed again?
This question applies to making doors stay open and close only when a button is pressed too.
I have a func_door that goes up and down to act as a lift. It's controlled by two func_usable 'buttons' tied to trigger_multiple boxes aimed at the 'buttons' and targetted on the lift.
Each 'button' is in fact two brushes overlaying each other, one set to "always_on" and one to "start_off" (each with a different texture), so that when you press the 'button' it switches between the two brushes to show it has been activated.
The thing is, how do you make the 'button' switch back automatically to the off state once it is pressed? In other words, the 'button' starts off black and turns green when you press it, but at the moment it stays green until you press it again; how do you make it switch back after a few seconds to the original, black look?
And secondly, how do you make the lift stay in the up position until either button is pressed again?
This question applies to making doors stay open and close only when a button is pressed too.