Jump to content
Sign in to follow this  
BlackQwar

Count all player units from one side inside trigger?

Recommended Posts

Hello,

I need help and I do not know where to get it. I have googled solution for several hours and I still can not figure it out. The sad thing is it is very simple issue.

I need trigger which will fire when all alive player units from ressistance side are withing this trigger.

Basically:

{isPlayer _x && side _x == resistance thislist}  == {isPlayer _x && side _x == resistance}

But it does not work :(

Can you help me please?

Regards

Share this post


Link to post
Share on other sites

{isPlayer _x && side _x == resistance && _x in thislist} count playableunits == {isPlayer _x && side _x == resistance} count playableunits

You can remove the side checks if you can use the side setting on the trigger itself.

Share this post


Link to post
Share on other sites
{isPlayer _x && side _x == resistance && _x in thislist} count playableunits == {isPlayer _x && side _x == resistance} count playableunits

Works like a charm. Thank you a lot mate!

Alternative I use for my mission:

{isPlayer _x && side _x == resistance }   count thislist  == {isPlayer _x && side _x == resistance} count allUnits;  

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  

×