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

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