Jump to content
Sign in to follow this  
shanawa

Looking for a better way to use less triggers for bargate vehicle only detection.

Recommended Posts

So I've searched and researched and can't figure out how to simplify this.

Currently I have 5 bargates that animate when certain opfor and independent vehicles approach. I didn't want to set the trigger for opfor detection because then the guards nearby would keep it open. So I originally grouped every vehicle with its own trigger at each bargate. That means 5 triggers per vehicle. With 10 vehicles I have alot of group lines and triggers. Then I found out I could use thislist in the trigger and not have to group triggers to vehicles but just name them. The problem is I can only figure out how to add 2 vehicles per trigger. I'm looking to find a way to either detect only opfor and independent vehicles or a way to add more names to the condition field or both so I know how to :).

In my current trigger I have Activation: ANYBODY,PRESENT, REPEATEDLY

And in the Condition field:

{vehicle _x == patrol1 || vehicle _x == patrol2} count thislist >0

On Act.

bargate5 animate ["bargate",0];

On Dea.

bargate5 animate ["bargate",1];

Share this post


Link to post
Share on other sites

 
{_x in vehicles && (side _x != west)} count thislist > 0

One ANYBODY PRESENT REPEATEDLY trigger with the above Condition and your existing OnAct/OnDeact

Edited by kylania

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×