Logic help

Discussion in 'Mapping Questions & Discussion' started by Bonkey Donk, Oct 25, 2018.

  1. Bonkey Donk

    Bonkey Donk L1: Registered

    Messages:
    49
    Positive Ratings:
    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
     
  2. DrSquishy

    aa DrSquishy ???

    Messages:
    1,211
    Positive Ratings:
    779
    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.
     
  3. Bonkey Donk

    Bonkey Donk L1: Registered

    Messages:
    49
    Positive Ratings:
    0
    i meant that both buttons should be activated for the door to open
     
  4. DrSquishy

    aa DrSquishy ???

    Messages:
    1,211
    Positive Ratings:
    779
    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