• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] turn rate

Status
Not open for further replies.
Level 10
Joined
Sep 29, 2006
Messages
447
okay so i have this hero with an ability called defensive gunner and basically it gives him extra damage and range but he has to stay still. its based off of bear form and he morphs into a unit with more range and damage bonuses, and a movement speed of 0. now here's the thing. when he attacks a unit that is behind or something, he doesnt turn to attack and it looks retarded. so i came up with this trigger

  • defensive gunner turn
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Attacking unit)) Equal to Mini-Gunner (stationary 1)
          • (Unit-type of (Attacking unit)) Equal to Mini-Gunner (stationary 2)
          • (Unit-type of (Attacking unit)) Equal to Mini-Gunner (stationary 3)
          • (Unit-type of (Attacking unit)) Equal to Mini-Gunner (stationary 4)
    • Actions
      • Unit - Make (Attacking unit) face (Attacked unit) over 0.40 seconds

but this doesnt work. so does anyone know how to get a unit with a move speed of 0 to face the unit it is attacking? thanks
 
Ill give it a last try ;). You could try making one trigger per mini-gunner. With these triggers:

Unit - A unit Is attacked
(Unit-type of (Attacking unit)) Equal to Mini-Gunner (stationary 1)
Unit - Make (Attacking unit) face (Attacked unit) over 0.40 seconds

Maybe the conditions mess with eachother, so it might work if you create one trigger per gunner.
 
NO! Set movement speed to 0(it may be 0 but the unit will move at a rate 1 per 30 seconds) and set movement type to anything other than none.
 
Last edited:
movement speed to zero?

okay isnt that what this whole thread has been about? if the movement speed is 0 it cannot turn. triggers dont seem help either so id like to make it so that the unit cannot move but still be able to turn. i used root but it has quite a deal of bugs so im not using it.

now, does anyone know how to make units which have 0 move speed turn when they attack?
 
...
Set their ms to 0. If via the object editor does not work(they do not turn) do it via triggers. I have done that several times, and it works.
And as another option, as I said, there is a tutorial on how to make a building able to turn - make you alternate unit a building that does not move, but turns.
Here is the link for those of you who are to lazy to go in the tutorial section... Link
 
Status
Not open for further replies.
Back
Top