How do I make this door?

Discussion in 'Mapping Questions & Discussion' started by jackal, Apr 7, 2016.

  1. jackal

    jackal Guest

    Positive Ratings:
    0
    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?
     
  2. DrLambda

    aa DrLambda L69: Teeheehee, Member

    Messages:
    458
    Positive Ratings:
    453
    Make a one-way door like you would do said one-way-door, then copy and rotate the trigger for the other side and change the filter to the other team.
     
    • Thanks Thanks x 1
  3. henke37

    aa henke37

    Messages:
    1,832
    Positive Ratings:
    420
    I worry that the triggers would interfeer with each other that way.
     
  4. Hotel Detective

    Hotel Detective L4: Comfortable Member

    Messages:
    187
    Positive Ratings:
    189
    Why would they?
     
  5. Gabe Noodle from Volvo

    Gabe Noodle from Volvo L3: Member

    Messages:
    142
    Positive Ratings:
    32
    They shouldn't as long as they're both filtered to the correct team.
     
  6. henke37

    aa henke37

    Messages:
    1,832
    Positive Ratings:
    420
    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.
     
  7. zahndah

    aa zahndah professional letter

    Messages:
    715
    Positive Ratings:
    618
    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.
     
    • Agree Agree x 1
  8. henke37

    aa henke37

    Messages:
    1,832
    Positive Ratings:
    420
    Don't need two counters. Just increment and decrement one.