Jump to content
Sign in to follow this  
jw custom

Trigger condition countSide thisList

Recommended Posts

I'm trying to check from a triggers condition if theres less than 4 east units left within a trigger area.

I tried this but with no luck.

({alive _x} east countSide thisList < 4)

How do i do this?

Share this post


Link to post
Share on other sites

I think dead units are civilian, so that alive check might not be needed anyway. How does your trigger look? East/present/repeatedly?

Share this post


Link to post
Share on other sites

(east countside thislist) < 4

'Activation' of the trigger must be set to either EAST/OPFOR or EVERYONE, because the array 'thislist' holds only those units which comply the triggers settings. Otherwise the east units won't be included in the array 'thislist' and the trigger will activate right away at start, with the condition that I typed above.

Edited by dengibtsschon

Share this post


Link to post
Share on other sites
I think dead units are civilian, so that alive check might not be needed anyway

Thanks for the tip.

'Activation' of the trigger must be set to either EAST/OPFOR or EVERYONE, because the array 'thislist' holds only those units which comply the triggers settings. Otherwise the east units won't be included in the array 'thislist' and the trigger will activate right away at start, with the condition that I typed above.

Thanks man that was exactly my problem it was set to NONE, i've spend several hours on that lol :p

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  

×