• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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