🏆 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!
Does this event run when a unit is removed from the game? call RemoveUnit(u)
And does this event run when a unit dies? Or it runs after the unit has decayed?
No for normal units as the unit decays where it dies. For heroes it can trigger because after dissipate completes they are moved to the top left corner and hidden there.
Same problem as with them being removed. How can something that does not exist trigger the event in a meaningful way?
StarCraft II solved this by eventually adding a "Unit is removed" event to the game after one of the patches which fires between being flagged for removal and the unit actually being removed. In Warcraft III there is no simple way to detect this as far as I am aware.
Dead units still exist as units though. Removed units do not. Dying can lead to removal after decay, but need not in the case of resurrection or long decay times.
🔨 Downloads and Uploads have been fixed! If you still have trouble downloading or uploading assets to or from Hive, please reach out to us in the Site Discussion board.
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.