Jump to content
Blitzen88

Delete units of a particular side when a unit leaves the trigger area

Recommended Posts

Greetings,

 

Im using a trigger which is activated whenever Blufor are present. Due to the spawn script that I am using, the trigger needs to be a “Blufor Present” type of trigger. 

 

Is there a way to delete all units of a particular side whenever Blufor units leave the trigger area? I looked into using the Deactivation part of the trigger but, per the wiki, it seems like you cant use the “this list” command on trigger deactivation. Does any one know how to do this?

 

Thanks

 

 

Share this post


Link to post
Share on other sites

in deact field:

{deleteVehicle _x} foreach (allunits select {_x inArea thisTrigger && side _x == THESIDEYOUWANT})

 

Share this post


Link to post
Share on other sites
8 hours ago, pierremgi said:

in deact field:

{deleteVehicle _x} foreach (allunits select {_x inArea thisTrigger && side _x == THESIDEYOUWANT})

 

This worked like a charm, thank you!

 

I was unaware of the inArea command!

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

×