Of course is there an action with that you can kill all units in a certain region
Unit Group - Pick each unit in (Any units in Region 001 owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Kill (Picked unit)
You find it at : "Pick each unit in Unit Group" then click at "Last created Units" and select "Units in Region Matching Condition"
The event could be a periodic time or you can start the trigger with the event "Unit enters/leave Region" and "Unit dies"
then in the condition you can use:
(Number of Living units in (Marine units in Region 001 owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0
Again you have to use "Units in Region matching condition"
Hope that helps you :D
And if you find some typo i dont care ^^
The only problem I am having is that I have several regions, and I want the event to trigger if any of them have no marines in them. How would I do this without making multiple triggers?
Thats easy in the condition you just make an "OR" and put the conditions with each region in it. So he says ok start the trigger when only one of them is correct.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Okay, is there an action that kill all the units in a certain region?
Is there an event that triggers when there are no units of a certain type in a region.
e.g. when there are no marines in region 1, the event triggers.
Thank you for your help!
@MrZentors: Go
Of course is there an action with that you can kill all units in a certain region
Unit Group - Pick each unit in (Any units in Region 001 owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions Unit - Kill (Picked unit)
You find it at : "Pick each unit in Unit Group" then click at "Last created Units" and select "Units in Region Matching Condition"
The event could be a periodic time or you can start the trigger with the event "Unit enters/leave Region" and "Unit dies"
then in the condition you can use:
(Number of Living units in (Marine units in Region 001 owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0
Again you have to use "Units in Region matching condition"
Hope that helps you :D And if you find some typo i dont care ^^
The only problem I am having is that I have several regions, and I want the event to trigger if any of them have no marines in them. How would I do this without making multiple triggers?
Thanks a ton!!
@MrZentors: Go
Thats easy in the condition you just make an "OR" and put the conditions with each region in it. So he says ok start the trigger when only one of them is correct.