• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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