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

How to detect a Unit has Died?

Status
Not open for further replies.
Level 10
Joined
Aug 15, 2008
Messages
720
Well take some init, set your unit in variable, then take your trigger:
Use event as Unit - Unit dies (Generic)
And I guess Conditions
(Dying Unit) or (Triggering Unit) equal to your variable unit...
And then your actions...
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
Better ask paladon on this (or make it jass, if it's a short trigger)

(if it is short feel free to pm me on it)

EDIT: No need for jass, saw it and used a local to reset the global after the waits (see trigger).
 

Attachments

  • Revive Test.w3x
    20.6 KB · Views: 59
Last edited:
Status
Not open for further replies.
Top