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)
 
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 ()
 
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.
Back
Top