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

Moving Units

Status
Not open for further replies.
Level 28
Joined
Sep 26, 2009
Messages
2,515
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