This only works when the unit isn't moving.
If a unit, turns upside down at any point it will roll 180 Degrees.
Ground units don't seem to work even if you make them float.
Credits
Arkless
eXirrah
Twinmold20
Grogian
Rover2341
Attached Map
The attached map allows you to change the pitch and yaw by pressing A + D For Yaw, And W + D For Pitch. It was made by Grogain and Edited by Rover2341. It is a GUI Version.
But might be easier to look at link above and mess with that code. As this has additional stuff so I could test it.
I am slightly under the impression that is has to do with the models, or Perhaps the way I am doing this the math is off But its pretty much a direct copy from link above. Warcraft must have somthing that doesnt want these guys going at 90 degrees. or 180 degrees for that matter.
0
I can get my model to export.
But when i import it back or import to starcraft it shows nothing. in 3ds max it shows a tiny tiny circle thing i cant make bigger.
I made a cube then put edit mesh. and then export. what am i doing wrong?
0
Is there a way to Have this data driven. When my Variable X = 15 the pitch gos to 15?
0
How To Change A Units Yaw And Pitch With Code
What Is Yaw And Pitch?
Functions
ChangeOrientation(target,yaw,pitch)
Takes the desired target(unit), yaw, pitch. It then changes the targets(unit) yaw and pitch Instantly.
ChangePitch(target,pitch)
Takes the desired target(unit), pitch. It then changes the targets(unit) pitch Instantly.
Notes
This only works when the unit isn't moving. If a unit, turns upside down at any point it will roll 180 Degrees. Ground units don't seem to work even if you make them float.
Credits
Arkless eXirrah Twinmold20 Grogian Rover2341
Attached Map
The attached map allows you to change the pitch and yaw by pressing A + D For Yaw, And W + D For Pitch. It was made by Grogain and Edited by Rover2341. It is a GUI Version.
0
I think I solved, with help...
This works right?
0
Mostly Ported from link above from twinmold.
Here is what I have If it helps.
But might be easier to look at link above and mess with that code. As this has additional stuff so I could test it.
I am slightly under the impression that is has to do with the models, or Perhaps the way I am doing this the math is off But its pretty much a direct copy from link above. Warcraft must have somthing that doesnt want these guys going at 90 degrees. or 180 degrees for that matter.
0
K Great It works fine.
Only Issue Now Is that It will only go like 70 degrees. I need it to go all 360.
0
How can you change a units "PITCH" After The Units Created?
[B]What?[/B] I would like function that will change the units pitch.
[B]Why[/B] Will Make Roller Coaster Map alot easier to make and maintain.
[B]Note[/B]: I am not looking how to change a doodads pitch in the editor. This is something that can be run in the game.
[B]Desired Function[/B]
ChangeUnitAngles(Unit, Yaw, Pitch)
The function takes the a unit and the desired pitch and yaw. It then changes the pitch and yaw of the unit.
[B]This Is what I mean When i say "Pitch" And "Yaw":[/B]
[IMG]//upload.wikimedia.org/wikipedia/commons/thumb/5/54/Flight_dynamics_with_text.png/325px-Flight_dynamics_with_text.png" rel="noopener nofollow" target="_blank">http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Flight_dynamics_with_text.png/325px-Flight_dynamics_with_text.png[/IMG">http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Flight_dynamics_with_text.png/325px-Flight_dynamics_with_text.png[/IMG]
[B]Any Ideas?[/B]
0
What?
I would like function that will change the units pitch.
Why?
Will Make Roller Coaster Map alot easier to make and maintain.
Note: I am not looking how to change a doodads pitch in the editor. This is something that can be run in the game.
Desired Function
ChangeUnitAngles(Unit, Yaw, Pitch)
The function takes the a unit and the desired pitch and yaw. It then changes the pitch and yaw of the unit.
This Is what I mean When i say "Pitch" And "Yaw":
http://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Flight_dynamics_with_text.png/325px-Flight_dynamics_with_text.png
Any Ideas?
EDIT (A Unit Made After The Map Has Started) EDIT