• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How do i make a trigger that kills all units...

Status
Not open for further replies.

Rammex

R

Rammex

How do i kill all units in a region owned by a player when a special unit dies? The player who loses his units are not to be defeated.

Thank you
 
  • Some trigger
    • Events
      • Unit - Your Unit 0000 <gen> dies
    • Conditions
    • Actions
      • Unit Group - Pick all units in Your Region and do Actions
        • If/Then/Else //Whatever its name is
          • If - Conditions
            • (Owner of (Picked unit)) Equal to Your Player
          • Then - Actions
            • Unit - Kill (Picked unit)
          • Else - Actions
 
  • Untitled Trigger 005
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Footman
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
 
Status
Not open for further replies.
Back
Top