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!
if IsUnitType(u, UNIT_TYPE_DEAD) or GetUnitTypeId(u) == 0 then
// unit is dead
endif
Using condition above you can always be sure unit is dead because there are rare issues in which GUI is alive/is dead can be buggy, although here are some other psibilities if don't care about those 'rare situations':
JASS:
local unit u = //unit here
if GetWidgetLife(u) < 0.405 then
// unit is dead
endif
set u = null
just make sure that if it is a spicific unit then its okey with what the guys answered and if its more than a unit u may need an array .. that was the point of my question. regards
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.