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

[Solved] DoesUnitExist

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
JASS:
udg_var == null

This will return false if the unit is removed and the variable isn't nulled. I can't do a life check because I dont want to get dead units to return true. Is there a good workaround for this? I just want

JASS:
if DoesUnitExist(var) then
 
Status
Not open for further replies.
Top