Unit comes within range

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.
 

Furberg

Ultra Cool Member
Reaction score
45
in first trigger. just make it in a Variable, lets call it unitMissile and then in second trigger kill "unitMissile" (or what the name of the variable is). Very simple
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
113
Hmm.. I just did somthing like this in my train game...

if i understand you right.

You have a missle(or projectile) thats a unit, that you make. and it gos till it hits someone. and the damage part is working.

Why not just say if missile touches any units remove missile or kill it.
 

Darox

New Member
Reaction score
8
in first trigger. just make it in a Variable, lets call it unitMissile and then in second trigger kill "unitMissile" (or what the name of the variable is). Very simple

Thats not MUI. Its important that this is MUI, as my map involves a lot of these projectiles.
 

T.s.e

Wish I was old and a little sentimental
Reaction score
133
If you want it MUI, why make it in GUI then?

Offtopic:
Is this for your bomberman map?
 

waaaks!

Zinctified
Reaction score
256
u can count the number of units near the projectile, and when it returns 1, damage that unit, then destroy or kill the projectile
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top