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

how to make unit face only left or right?

Status
Not open for further replies.
Level 3
Joined
Oct 28, 2008
Messages
27
How would I go about making a unit face only left or right, yet still be free to move about?

The model would face left when the left key is pressed, and right when right is pressed...

I have used the code provided by Wimpycow in the youtube tutorial for my movement... Part 1 and Part 2.

I already have a rotated unit model, so I suppose this would involve possibly resetting the unit's facing angle every .04 seconds or such to either -90 or 90 degrees?
footyoo9.jpg
 
Level 11
Joined
Dec 31, 2007
Messages
780
try playing with this:

if you order a unit to play some animation and you never reset unit's animations again... some things happens, try it and see if that works... there is also a "lock body part facing" thingy but i dont think that action will fulfill your needs

about the angles it would be

<- 180 --and-- 0 ->

not 90 (up) and 270 (or -90 down)
 
Level 3
Joined
Oct 28, 2008
Messages
27
@avatar, good solution, thx.

@darkrider, thx i'll play with that.

+rep to both of you, thx for being helpful (unlike silk)

----------------------------------------------------------

what about to stop double posting with the same subject?

@silk what about it? is that pertinent at all to this thread? oh, what about not going off topic?
how about just being helpful instead of proving to everyone that you're indiscriminately a moron, as i said in that "double post" that it was indeed a double post and asked a mod to take it down. i would've deleted it if i could. ass-hat...
 
Status
Not open for further replies.
Top