• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Moving Units

Status
Not open for further replies.
Level 25
Joined
Sep 26, 2009
Messages
2,378
setUnitX and Y do not take pathing into consideration. They also do not interrupt myUnit's current order. These scripts are excellent when you want to make a gravitation well-like ability that is pulling units inside and those units can try to "outrun" the force and run away.

setUnitPosition takes pathing into consideration, so unit may not be moved to the exact spot you want if there is already something else there. It also cancels current order
 
Status
Not open for further replies.
Top