Jump to content
lwoadam

Trigger activated when all members of a group are Inside Trigger Area

Recommended Posts

Hello - I am having a dilemma trying to figure this out.  I have searched the forum but nothing I am doing is seeming to work for me.

 

So here's what I want to do - my leader init is

grp1 = group this

 - I want BLUFOR units to kneel once trigger is activated

{_x setUnitPos "MIDDLE"} forEach units grp1;

How am I am able to have this trigger activate on the condition that all members of grp1 are within the trigger area so they kneel once they all fall in?  

 

Thank You

Share this post


Link to post
Share on other sites

Condition:

({alive _x} count units grp1) == ({_x inArea thisTrigger} count units grp1) 

Basically, this says "the number of units from grp1 that are still alive are also all in the trigger area."

 

 

  • Like 2

Share this post


Link to post
Share on other sites
7 hours ago, Harzach said:

Condition:


({alive _x} count units grp1) == ({_x inArea thisTrigger} count units grp1) 

Basically, this says "the number of units from grp1 that are still alive are also all in the trigger area."

 

 

 

Works!  Thank you!

Share this post


Link to post
Share on other sites
On 9/5/2023 at 3:24 AM, Harzach said:

Condition:


({alive _x} count units grp1) == ({_x inArea thisTrigger} count units grp1) 

Basically, this says "the number of units from grp1 that are still alive are also all in the trigger area."

 

You can also do this without using the Condition.

Right-click the group you want and under Connect choose set trigger owner, then choose the trigger.

Open the trigger settings and you will see that there are now new options under Activation one being Whole Group.

  • Like 1

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

×