• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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