How to add filter to the payload cart capture zone?

Discussion in 'Mapping Questions & Discussion' started by BenCo, Feb 19, 2016.

  1. BenCo

    BenCo L5: Dapper Member

    Messages:
    241
    Positive Ratings:
    161
    So with one of my firends we started making a custom gamemode. Now the BLU team needs to get a "powerjuice" (item_teamflag) to able to push the cart. We just don't know how to make the cart only pushable when one of the pushers have the "powerjuice". Thanks in advance.
     
  2. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    998
    Positive Ratings:
    1,135
    You should be able to do this by parenting a func_flagdetectionzone to the cart and using the OnStartTouchFlag/OnEndTouchFlag outputs to enable/disable the trigger_capture_area, respectively:

    OnStartTouchFlag | <capture trigger name> | Enable
    OnEndTouchFlag | <capture trigger name> | Disable
     
    • Thanks Thanks x 1
  3. Luigi1000

    Luigi1000 L2: Junior Member

    Messages:
    65
    Positive Ratings:
    10
    I am so glad someone knew about this, I have been digging around for the past 2 days looking for a possible way to check for the flag. Thanks killo.
     
  4. BenCo

    BenCo L5: Dapper Member

    Messages:
    241
    Positive Ratings:
    161
    Tomorrow I can release a prefab to show how it worked out.