Darox
New Member
- Reaction score
- 8
So I have this spell that sends a dummy projectile flying through the air.
What I want it to do is damage the first unit it reaches, then kill the projectile.
Projectile flying works fine, damaging the unit that comes in range works fine, but I can't figure out how to reference the projectile that the 'entering unit' is coming within range of.
I don't have the exact code with me, but its nice and simple.
Event occurs
Create 1 Dummy projectile
Order (last created unit) to move to P
Add event to 'Fire Damage' - Unit comes within X of (last created unit)
Fire Damage
Deal Y damage to (Entering unit)
Kill unit (???)
I want to know what I can put so that it kills the projectile.
And it would be nice if someone told me if you could still reference the projectile if it has locust.
What I want it to do is damage the first unit it reaches, then kill the projectile.
Projectile flying works fine, damaging the unit that comes in range works fine, but I can't figure out how to reference the projectile that the 'entering unit' is coming within range of.
I don't have the exact code with me, but its nice and simple.
Event occurs
Create 1 Dummy projectile
Order (last created unit) to move to P
Add event to 'Fire Damage' - Unit comes within X of (last created unit)
Fire Damage
Deal Y damage to (Entering unit)
Kill unit (???)
I want to know what I can put so that it kills the projectile.
And it would be nice if someone told me if you could still reference the projectile if it has locust.