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

Creating a 'turret' unit.

Status
Not open for further replies.
Level 24
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