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

Turning and moving

Status
Not open for further replies.
Level 6
Joined
Mar 2, 2006
Messages
306
if i understood correctly that you want a unit not to be able to move, but still to be able to turn towards combat, here is a solution i used once:
1) make a buff based on whatever
icon = your unit icon or whatever
art --> remove all effect models
tooltip = whatever
2) make an ability based on ensnare:
mana cost = 0; casting range = 50;
duration = 0 //means forever (if that is what you want)
buff = our buff from above;
targets = ground
3) do this whenever a unit is created and revived (or becomes static)
Unit - Add SelfEnsnare ability to OurUnit
Unit - Order OurUnit to Orc Raider - Ensnare OurUnit
Unit - Remove SelfEnsnare ability from OurUnit
4) that's it; if the unit can become mobile again, there is a trigger action called: Unit - Remove specific buff...

hope that helps
 
Level 9
Joined
Jul 27, 2006
Messages
652
Hmmm the best way i know to disable movement but enable turning is to set movespeed to 1. That way the unit moves soooo slowly but it can still turn. Then use pask's idea. The problem is that the unit can still blink ect.
Hope this helps, its simpler than ensnare too.
 
Status
Not open for further replies.
Top