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

Creating a 'turret' unit.

Status
Not open for further replies.
Level 23
Joined
Oct 12, 2008
Messages
1,783
Im trying to make a unit that does not move but can rotate to attack/cast (ie. a turret)
- Current best solution I have is to give it 1 movespeed
- Setting movespeed to 0 or adding the 'turret' ability simply causes the unit to be able to attack regardless of model facing.
 
Level 9
Joined
Jul 30, 2018
Messages
445
Set the move speed to 1 and remember to set the minimum movement speed to 1 on Gameplay Constants as well. This will make the unit able to turn, but move very, very slowly.

Another way or to enhance the previous effect, you can also use something like Is Unit Moving 2.1.0.0 and when the move event becomes 1, order the unit to stop. I've had good results with the combination of these two.
 
Level 9
Joined
Jul 30, 2018
Messages
445
just base the unit on the attack wards of the shadow hunter

That's a different thing. The ward itself doesn't turn, it's just the model. Same way a Cannon Tower "turns" towards the attack direction, but it's just a bone of the model, like you could make custom model and make the head turn towards the enemy, but the unit itself doesn't turn.
 
That's a different thing. The ward itself doesn't turn, it's just the model. Same way a Cannon Tower "turns" towards the attack direction, but it's just a bone of the model, like you could make custom model and make the head turn towards the enemy, but the unit itself doesn't turn.
I see.

The method I normally use is to disable right click. It allows to change it on the go instead of it being permanent. I'm not sure if any new natives are able to modify the propulsion window in real time, but if so then I guess that's the best way to do it.
 
Status
Not open for further replies.
Top