How to add filter to the payload cart capture zone?

BenCo

L5: Dapper Member
Dec 30, 2015
242
135
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.
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
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
 

Luigi1000

L2: Junior Member
Dec 12, 2015
65
14
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

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.