• 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.

Remove unit type {destroy all units of <type> once an ability is cast}

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
Is there a way to remove a unit type from game when an ability is cast. I would like to make a destroy traps ability that kills off all traps set up on the map.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 012
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Destroy Traps
    • Actions
      • Set Temp_Group_1 = (Units of type Trap)
      • Unit Group - Pick every unit in Temp_Group_1 and do (Actions)
        • Loop - Actions
          • Unit - Remove/Kill (Picked unit) from the game
      • Custom script: call DestroyGroup(udg_Temp_Group_1)
 
Status
Not open for further replies.
Top