• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Crash] HUGE Lag when a unit dies.

Status
Not open for further replies.
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.
Back
Top