• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] How will i stop the unit..?

Status
Not open for further replies.
Okay so im making a move that makes the unit float up and move really fast towards the targeted point.. but how would i go about stopping the unit when it reaches that point.. i need to find the right integer for this condition..

I need it to be and number between 10-19.. how would i do it..

  • (Distance between (Position of RushCaster[(Player number of (Owner of (Casting unit)))]) and (Target point of ability being cast)) Equal to (Integer i need)
 
Level 8
Joined
Aug 4, 2006
Messages
357
where you wrote (Integer i need) is actually a real value. not that that matters. but... i still don't understand what you're asking. are you asking what distance is good to check if the unit has reached the target point? if so, anywhere between 10 and 25 would be good. is there a particular reason you need it to be between 10 and 19?

if your question is how to stop the unit, you'll have to use a periodic trigger that checks how close the unit is to the target, and orders the unit to stop once it's distance to target is less than or equal to 15 (or whatever).
 
Status
Not open for further replies.
Top