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

Removing a ranged attacker mid-attack.

Status
Not open for further replies.
Level 5
Joined
Sep 19, 2006
Messages
152
Does removing a ranged unit (such as an archer) also remove its missle if that missle is mid-air?

JASS:
call RemoveUnit (ranged_unit)
 
Level 5
Joined
Sep 19, 2006
Messages
152
So if a ranged attack (Unit A) is removed just as that unit fires a missile, and that missile happens to kill another unit (Unit B), what would the following function return? Unit A or null?

JASS:
    set kill_unit = GetKillingUnit ()
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
null

edit/ @ fingolfin he said "remove" not kill. Theoretically your correct if it is killed not removed, as long as the missle hits before decay time
 
Status
Not open for further replies.
Top