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

Help With Trigger

Status
Not open for further replies.
Level 4
Joined
Feb 9, 2014
Messages
32
Hi, i am pretty new at World editor and I am trying to make a trigger that kills all units belonging to one player in a certain region.

I need this because my map is using Waves of enemies and i need all units for player brown to die Before a new wave arrives.

If anyone would like to give me a tip on how to do this i would appreciate it very much.
/Danor
 
  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in Region <YourRegion> owned by Player 12 and do Actions:
    • Loop - Actions
      • Unit - Kill PickedUnit
The custom script is to prevent the unit group from leaking. You can read "Things That Leak" in my signaure for more information about leaks.
 
Status
Not open for further replies.
Top