• 🏆 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!

[Solved] how to turn unit that does not move?

Status
Not open for further replies.
Long ago i tried to make a chess map and the first problem i faces is that i dont want the pieces to be able to move freely, but only with blink.
But blink says that the unit cannot move. On top of that when i move the unit with triggers, it turns to the right, i cannot make it turn to be 90C.

Any ideas?
 
Last edited:
Level 5
Joined
Oct 16, 2007
Messages
67
Give the unit movement speed. Then use "call SetUnitPropWindow(<Unit>,0)" to disable movement, it can still turn thought and counts as if it has movement.
After reacing the destination you have to use the function Unit - Make Unit Face Angle.

But do the units realy have to be owned by the player? You could use an AI ally. On selection just create circles of power and selecting one gives a move order. This way you can also prevent wrong moves easily.
 
Status
Not open for further replies.
Top