• 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 do you give a unit Z facing?

Status
Not open for further replies.
Level 8
Joined
Mar 3, 2009
Messages
327
I played a map, combat zone. You can fly planes around, and they have XY facing, as well as Z facing, XY being just the normal 0-360 degrees, and Z facing being kind of like the angle of attack on the game camera, if you catch my drift.

I was wondering how to replicate this for my map? I dont think there are any functions that handle Z facing for a unit...
 
You need to get the Dummy.mdx model that Vexorian or Anachron made and that has pitch rotations, then you need to add a custom script that sets its animation. Then, you will need to figure out what events trigger the ship's tilt on the z-axis and figure out what z-angle you want the plane to have, and use a looping trigger to execute it.

Or you could just look at the map script and see what he's using.
 
Status
Not open for further replies.
Top