• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] kill all units

Status
Not open for further replies.
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

  • Boom
    • Events
      • Your event
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Picked unit)) Equal to Player 11 (Dark Green)
            • Then - Actions
              • Unit - Explode (Picked unit)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Owner of (Picked unit)) Equal to Player 12 (Brown)
                • Then - Actions
                  • Unit - Explode (Picked unit)
                • Else - Actions
                  • Do nothing
I take "Unit - Unit explode" (for more blood =P) but you can take "Unit - Unit kill" to ^^
 
Level 4
Joined
Mar 25, 2009
Messages
52
Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do Actions
Loop Actions - Kill (Picked unit)

Do that, but change the "Player 12 (Brown)" to whatever you want.
Hope it helps, if it did, +rep ^^
 
Level 11
Joined
Feb 16, 2009
Messages
760
1. Never ask for rep
2. All these solutions leak a unit group.
Use this trigger
  • Kill
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by Player 11 (Dark Green)) and do (Unit Group - Add (Picked unit) to TempGroup)
      • Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do (Unit Group - Add (Picked unit) to TempGroup)
      • Unit Group - Pick every unit in TempGroup and do (Unit - Kill (Picked unit))
      • Custom script: DestroyGroup(udg_TempGroup)
 
Status
Not open for further replies.
Top