Logic help

Gungle

L1: Registered
Sep 22, 2018
49
0
I wanna make a bank door activated by two buttons, these buttons are actually triggers that are near a button model so players wouldn't have to press m1. the door is the blast door from 2fort as prop_door_rotating and i want it to reset every round
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
I wanna make a bank door activated by two buttons, these buttons are actually triggers that are near a button model so players wouldn't have to press m1. the door is the blast door from 2fort as prop_door_rotating and i want it to reset every round
Make the triggers both 'trigger_multiple'. You can have a single button trigger with OnStartTouch <rotating door> Toggle, or if you want two, have on button A's trigger - OnStartTouch <rotating door> Open and on button B's trigger - OnStartTouch <rotating door> Close. Doors will reset every round by default, I believe, so nothing needs to be done there. You could also have a func_button that is activated on touch instead of using triggers.
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
i meant that both buttons should be activated for the door to open
Have a math_counter, with a max of 2 and a starting value of 0. With each trigger being a trigger_once, set the output to OnStartTouch <math_counter> Add <parameter override of 1>. In the math_counter, use OnHitMax <rotating door> Open