If all units of an enemy player die...

Whisp_Rush

Active Member
Reaction score
0
Hi everybody:
I want the following:
If all units of an enemy player die in a region, then do actions....
I've made this:
Trigger:
  • Unit - Create 5 Grunt for Player 12 (Brown) at (Center of spawn point <gen>) facing Default building facing degrees
    • Unit Group - Pick every unit in (Units in spawn point <gen>) and do (Unit - Order (Picked unit) to Attack-Move To (Center of teleport kapu2 <gen>))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (kapu22 <gen> contains (Triggering unit)) Equal to True
        • ((Triggering unit) belongs to an ally of Player 11 (Dark Green)) Equal to True
      • Then - Actions
        • Unit Group - Add (Triggering unit) to Kapu22
      • Else - Actions
        • Do nothing
    • Wait until ((All units of Kapu22 are dead) Equal to True), checking every 1.00 seconds


the problem is, that it doesn't wait..... I don't know why... When the grunts are created, it starts the other actions, which should be done, after the grunts are dead... ahh it says that an ally of player 11 dark green.... in the map options I've set 2 alliances, one is player 1-2-3-4-5-6-7-8-9-10 and the other is player 11-12..... if you can please help me
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top