Author Topic: Player rotation [SOVLED]  (Read 805 times)

Is there a function to make the player do a full rotation?
« Last Edit: March 11, 2012, 10:52:07 AM by Aide33 »

Serversided you can do this
%player.setTransform(%player.getPosition SPC "rotx roty rotz");
Clientsided you can do this
$mvPitch/Yaw = mDegToRad("Degrees");

$mvPitch/Yaw = mDegToRad("Degrees");
"Syntax Error in input"

EDIT: I also want him to do a slow rotation like when you type in turnleft(1);
« Last Edit: March 10, 2012, 09:49:49 AM by Aide33 »

Because you're not supposed to actually put the slash in.
Did you really want him to type $mvPitch and $mvYaw separately because you can't understand a slash?

Because you're not supposed to actually put the slash in.
Did you really want him to type $mvPitch and $mvYaw separately because you can't understand a slash?
Oh sorry kinda figured it looked weird.
It works but it goes almost instantaneously, is it possible to make it slower?
« Last Edit: March 10, 2012, 09:51:52 AM by Aide33 »

Oh sorry kinda figured it looked weird.
It works but it goes almost instantaneously, is it possible to make it slower?
Use pitch(); and yaw();

These functions use finer control than $mvPitch and $mvYaw

These functions use finer control than $mvPitch and $mvYaw
No, they are not. $mvYaw and $mvPitch are the way to go.

yaw() and pitch() ADD to those variables.
It is relative.

But if you want to control speed:
$mvYawLeftSpeed
$mvYawRightSpeed
$mvPitchUpSpeed
$mvPitchDownSpeed

yaw() and pitch() ADD to those variables.
It is relative.

In addition, any input to yaw() and pitch() is factored to the mouse sensitivity and mouse adjust amount.

$mvYaw and $mvPitch are the way to go.