Units facing does not return 0 -> 359,9999... but -179,9999... -> 180. You can set an angle to say, 350, but it will return -10. Could maybe be affecting your triggers. I'd assume this "degree standard" is true for any kind of angle.

Units facing does not return 0 -> 359,9999... but -179,9999... -> 180. You can set an angle to say, 350, but it will return -10. Could maybe be affecting your triggers. I'd assume this "degree standard" is true for any kind of angle.

When taking cosine and sine of angles (which is what you need to send as the actor message) it doesn't matter if the angle is measured from -180 to 180 or 0 to 360. The cosine of -10 degrees is 0.984907753 and is the same as the cosine for 350 degrees, the sine of -10 degrees is -0.1736481777 and is the same as the sine of 350 degrees. So that cannot be the issue.

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.

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

The Send Actor Message Set Rotation action should do what you are looking for. It cannot change a units roll however.

Here is a link: http://forums.sc2mapster.com/development/map-development/902-rotating-units-around-x-or-y-axis/ There is a map posted in that thread which has that kind of function in it so you don't have to work with trigonometry.

Moved to Triggers.

Flyers have attachments called rockers to simulate pitching and rolls, which you might be able to work with for your purposes.

@BumpInTheNight: Go

Aren't those attachments called bankers? You can't send any values to them either.

@Twinmold20: Go

Oops my bad you're right they're referred to as bankers.

K Great It works fine.

Only Issue Now Is that It will only go like 70 degrees. I need it to go all 360.

Units facing does not return 0 -> 359,9999... but -179,9999... -> 180. You can set an angle to say, 350, but it will return -10. Could maybe be affecting your triggers. I'd assume this "degree standard" is true for any kind of angle.

When taking cosine and sine of angles (which is what you need to send as the actor message) it doesn't matter if the angle is measured from -180 to 180 or 0 to 360. The cosine of -10 degrees is 0.984907753 and is the same as the cosine for 350 degrees, the sine of -10 degrees is -0.1736481777 and is the same as the sine of 350 degrees. So that cannot be the issue.

Ok, didn't know which format was used for that. Still, might be an issue, dunno exactly how he built the trigger.

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.

I think I solved, with help...

This works right?