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

Spin-move instead of normal move

Status
Not open for further replies.
Level 2
Joined
Apr 11, 2012
Messages
11
hey guys.
i want units, which spin around their own axis while they are moving, like the spider mine if placed. hope you know what i mean.
i tried to create an ability, but it didn't work, also no success with using trigger... maybe you guys have a good idea or a solution? :)
 
Level 6
Joined
Apr 15, 2012
Messages
205
Do you mean like a bladestorm where the unit spins around but moves in one direction?
 
Level 6
Joined
Apr 15, 2012
Messages
205
I was thinking that you could use triggers to create an actor on the unit when the unit is issued ordered to move. Then somehow hide the original unit.

You should have two variables, one which holds the actor and the other one holds the angle which the actor should face.

You could have a trigger with a periodic event that runs every 0.05 seconds. It increases the angle of which the actor should face by 1.

The problems I couldn't fix were how to destroy the actor when the unit stops moving and to hide the original unit, hopefully a mod knows better.
 
Status
Not open for further replies.
Top