• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need a system for rotatable turrets {rotate the turret to the target}

Status
Not open for further replies.
Level 11
Joined
May 31, 2008
Messages
698
  • Tank Attack
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Tank
    • Actions
      • Animation - Lock (Triggering unit)'s Head to face (Target unit of issued order), offset by (0.00, 0.00, ((Current flying height of (Target unit of issued order)) + 90.00))
      • Wait until ((Current order of (Triggering unit)) Not equal to (Order(attack))), checking every 0.10 seconds
      • Animation - Reset (Triggering unit)'s body-part facing
This should work if the gun is the "head" of the unit.
Maybe you could also do "A unit is attacked" for the event and change "triggering unit" to "attacking unit"
 
Level 7
Joined
Feb 1, 2008
Messages
296
an easier way is to

1. Create an ability based on Spellbook
2. Create an ability based on Root(Any one is fine) and enable rooted turning
3. Add your custom Root to your custom Spellbook
4. Give your Spellbook to your unit
5. At Initilization trigger(or any trigger with Map Initialization event) create an action that disables the ability for the player(not remove)
 
Status
Not open for further replies.
Top