How do I make this door?

  • If you're asking a question make sure to set the thread type to be a question!
J

jackal

I want to make a door that lets the Blue players go through one way (but not back), and the Red can go through the opposite way. So it is a one-way door that is one way for Blue and the other way for Red. How do I make this door?
 

henke37

aa
Sep 23, 2011
2,075
515
I worry that the triggers would interfeer with each other that way.
 

henke37

aa
Sep 23, 2011
2,075
515
It's more the outputs they produce that I worry about. It's not hard to think up timing scenarios that will lead to stuck doors.
 

zahndah

professional letter
aa
Jul 4, 2015
721
642
you could have it so everyone leaving the trigger for 1 team sets a math_counter to 1, and the same for the other team. Then use a logic_compare to see if they are both 1, if so - close the door. Then for opening, OnStartTouchAll could set the corresponding counter to 0 and open the door.
 

henke37

aa
Sep 23, 2011
2,075
515
Don't need two counters. Just increment and decrement one.