• 🏆 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!

[Crash] HUGE Lag when a unit dies.

Status
Not open for further replies.
Level 6
Joined
Sep 13, 2013
Messages
155
In your defeat trigger you don't need to pick units in a unit group you just have to check the condition:

  • Events
    • Unit - A unit Dies
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Number of units in (Units in (Playable map area) owned by (Owner of (Triggering unit)))) Equal to 0
    • Then - Actions
    • Game - Defeat (Owner of (Triggering unit)) with the message: |cFFFF0000You were ...
    • Else - Actions
 
Status
Not open for further replies.
Top