• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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