How can i create something that needs multiple triggers?
Quote from screedle on June 1, 2011, 6:48 amMy situation is this: two lasers are crossing each other in an X shape, each going into a different catcher. I need the player to place a redirection cube at the centre of the X to UNpowered both of the laser catchers. The result of this is a panel retracting to reveal a new hallway. How can I make this happen?
In a related matter, how can I make it so that when either one or both of the catchers are powered, it goes back to its original position?
- Both unpowered = Panel down
- One powered = Panel up
- Both powered = Panel up
- How can this be made to happen?
My situation is this: two lasers are crossing each other in an X shape, each going into a different catcher. I need the player to place a redirection cube at the centre of the X to UNpowered both of the laser catchers. The result of this is a panel retracting to reveal a new hallway. How can I make this happen?
In a related matter, how can I make it so that when either one or both of the catchers are powered, it goes back to its original position?
- Both unpowered = Panel down
- One powered = Panel up
- Both powered = Panel up
- How can this be made to happen?
Quote from RageCompeX on June 1, 2011, 7:17 amif I understand well, you want to open a door when both are unpowered, thats easy, create 2 branches, and a branch listener, the laser catchers need to trigger the branches, so OnUnpowered, Set branch to True. and OnPowered set branch to False, now in the branch Listener you say, on all true, open panels. If you want that the door closes again after one of the catchers Power again, then you also have to add, On Mixed, close panel or, and on all false, close panel.
I suppose you know how to use the panels so I don't have to tell you how to open and close them, and they are also on the developers wiki I geuss
if I understand well, you want to open a door when both are unpowered, thats easy, create 2 branches, and a branch listener, the laser catchers need to trigger the branches, so OnUnpowered, Set branch to True. and OnPowered set branch to False, now in the branch Listener you say, on all true, open panels. If you want that the door closes again after one of the catchers Power again, then you also have to add, On Mixed, close panel or, and on all false, close panel.
I suppose you know how to use the panels so I don't have to tell you how to open and close them, and they are also on the developers wiki I geuss
Quote from l1zardr0ckets on October 15, 2014, 12:41 pmYou could also create a "math_counter", and set the max amount to "2" and min to "0". Then on the output have it so "on change from min", it activates the panels and "on hit min", disable the panels. Then have the catchers just add/subtract when powered/unpowered to the math counter.
You could also create a "math_counter", and set the max amount to "2" and min to "0". Then on the output have it so "on change from min", it activates the panels and "on hit min", disable the panels. Then have the catchers just add/subtract when powered/unpowered to the math counter.
Quote from srs bsnss on October 16, 2014, 7:55 amNecro, but my 2 cents is: If it's a two-piece gate, use a logic_coop_manager. Catcher A would control State A True/False and Catcher B would control State B True/False. OnAllFalse > Panel down.
Necro, but my 2 cents is: If it's a two-piece gate, use a logic_coop_manager. Catcher A would control State A True/False and Catcher B would control State B True/False. OnAllFalse > Panel down.
Quote from josepezdj on October 16, 2014, 10:01 amHahaha... ok, let's join to the party!
For a single player map, I wouldn't use a coop_manager Steve :p. I would use exactly the same setup as RageCompeX, logic_braches with a logic_branch_listener, it's really clean and works perrect... I've been always using that way for similar I/O cases. The setup with the math_counter should work though as well.
Hahaha... ok, let's join to the party!
For a single player map, I wouldn't use a coop_manager Steve :p. I would use exactly the same setup as RageCompeX, logic_braches with a logic_branch_listener, it's really clean and works perrect... I've been always using that way for similar I/O cases. The setup with the math_counter should work though as well.