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

Removing existing ingame units from game

Status
Not open for further replies.
Level 18
Joined
Jul 5, 2013
Messages
188
I have another trigger editing dilemma. How exactly do i remove existing ingame units from game?

Like for example i want to automatically remove the already trained Troll Headhunter and Troll Witch Doctor units from game after ingame cutscene, but when it ends the units are still there. The trigger where you can no longer train Headhunters and Witch Doctors from buildings work, but whatever trigger i try those two unit types that i already have still exist.

What kind of exact trigger setup do i need to accomplish this, or is there an alternative that can be provided for this situation?
 
Level 30
Joined
Aug 29, 2012
Messages
1,382
That should be easy enough

  • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Troll Headhunter) or ((Unit-type of (Matching unit)) Equal to Troll Witch Doctor))) and do (Actions)
    • Loop - Actions
      • Unit - Remove (Picked unit) from the game
 
Status
Not open for further replies.
Top