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

Movement shiz

Status
Not open for further replies.
I've had the same problem. What you do is probably this:

Offset (Unit's Position) by 10 in (Facing Of Unit).

When a unit now enters a impassable area it tries to move away from there, so the (Facing Of Unit) gets totally messed up.

What I did to solve it:

Set MyAngleVariable= (Facing Of Unit) <-- Do this once at the beginning of the game


Offset (Unit's Position) by 10 in (MyAngleVariable). <- This is for movement.
(Facing Of Unit)=MyAngleVariable <-- This makes the unit look in the right direction

You probably have triggers for turning left or turning right. These need to be adjusted to work with MyAngleVariable:

Old: (Facing Of Unit) = (Facing Of Unit) +5
Now: MyAngleVariable=MyAngleVariable+5

I hope that's understandable :p I could give you the code sample, but it's in Galaxy, not GUI.
 
Status
Not open for further replies.
Back
Top