Buy Elder Scrolls Online: Greymoor for PC at Green Man Gaming

Door closing after capturing two points?

Discussion in 'Mapping Questions & Discussion' started by cornontheCoD, Jan 8, 2009.

  1. cornontheCoD

    cornontheCoD L7: Fancy Member

    Positive Ratings:
    I want a door to close after the attacking team captures A and B (gravelpit style).

    I am having a hard time doing this. I tried using logic_compare with the input starting at 0 and the compare value at 2. Hypothetically, I could make capping A add 1 and capping B add 1. The problem is that on the hammer wiki it says that the addoutput command (I would use the addoutput command from the cap points, sending it to the logic_compare) is potentially dangerous to use and to use it with care

    any ideas?
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Positive Ratings:
    Wrong entity to use. Use a math_counter with it's max value set to 2, and starts at 0. Each capture adds 1 to it and use OnHitMax to close the door.

    As a side note, addoutput has nothing to do with mathematical adding, it literally adds an output to an entity. They label it as dangerous because it is entirely possible to do things with it that will cause crashes if not handled with care.
    • Thanks Thanks x 1
  3. Acegikmo

    aa Acegikmo

    Positive Ratings:
    Make three relays.

    relay_cap_a (Start disabled)
    relay_cap_b (Start disabled)

    relay_cap_a:: OnTrigger -> relay_cap_b -> Trigger
    relay_cap_b:: OnTrigger -> relay_cappedboth -> Trigger
    controlpoint_a:: OnCapTeam2 -> relay_cap_a -> Trigger
    controlpoint_b:: OnCapTeam2 -> relay_cap_a -> Trigger
    relay_cappedboth:: OnTrigger -> door -> Open

    Or do it the easy way that boojum said :D
Buy Elder Scrolls Online: Greymoor for PC at Green Man Gaming