Jump to content
Sign in to follow this  
bvrettski

Count players as trigger condition?

Recommended Posts

I'm trying to create a trigger action that watches for opfor players to enter the trigger area. My issue is there will already be two opfor AI in the area. How can I make a condition that counts the number of opfor players in the trigger are and doesn't trigger until it reaches a certain number?

 

In generic terms terms something like:  count opfor in trigger area, if opfor count >=5 then ________.

Share this post


Link to post
Share on other sites

Condition:

{ isPlayer _x } count thisList >= 5
Also set the trigger to opfor only.

Share this post


Link to post
Share on other sites

Condition:

{ isPlayer _x } count thisList >= 5
Also set the trigger to opfor only.

 

Thank you I will try this.

Share this post


Link to post
Share on other sites

You can also try making an OPFOR unit as trigger owner isntead of it being activated by any unit from OPFOR.

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  

×