• 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.

Once a unit reaches a point

Status
Not open for further replies.
Level 10
Joined
Jan 20, 2011
Messages
492
Hey guys I was wondering if there is anyway to recognize if a unit reaches a point (that I created when casting a spell), similar to the way you can do it with regions when they enter it?

Because I want to make it when my dummy units reach a certain point the get removed from the game.

EDIT: I think I figured out how to do it using
  • (Distance between Point and PointDummy[(Integer A)]) Equal to 0.00
EDIT2: Wait that won't work unless I keep moving the point to where the unit is.
 
Level 10
Joined
Jan 20, 2011
Messages
492
But you also could create a dummy unit atwhich is invisible and then add event, a unit comes in range of 20 (maybe less is quite few?) with unit --> remove it.

Edit: Distance == 0 doesn't seem to be a good check for me.

That's actually a good idea, I will try it if this doesn't work. +rep for the idea and help.

EDIT: Ok I have my problem solved, and got it to work thank you for the help
 
Status
Not open for further replies.
Top