• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

unit leaves playable map area question(s)

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,239
Does this event run when a unit is removed from the game?
Because there is no "unit" in that case? How can something that has already been removed trigger an event in a sensible way?

And does this event run when a unit dies?
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.

Or it runs after the unit has decayed?
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.
 
Status
Not open for further replies.
Top