09-20-2011, 15:30
Hello
Another tutorial, this one I think is usefull, is about rotating a model angle and setting a model angle
Lets put first the model with the one Ill explain this:
Now, well set the initial angles like this.
Angle Info:
Lets go in our example:
To rotate a model we can do it by many ways, this 3 are used to rotate the model in one certain angle(pitch,yaw,roll):
But I recomend you using this other command, is far completer because it allows you to rotate the object in the 3 ways using a period of time.
Lets go into our example and lets rotate the object to the angles (60,30,20) in 5 seconds:
Thats it, now you know how to modify a object angles perfectly
Another tutorial, this one I think is usefull, is about rotating a model angle and setting a model angle
Lets put first the model with the one Ill explain this:
Code:
OMA = Spawn("script_model",(0,0,0));
OMA SetModel("weapon_oma_pack");
Now, well set the initial angles like this.
Code:
object.angles = (angles[0],angles[1],angles[2]);
Angle Info:
Spoiler (Click to View)
Code:
OMA.angles = (0,90,0); // this will set the Pitch and Roll in 0 and the Yaw in 90 degrees
To rotate a model we can do it by many ways, this 3 are used to rotate the model in one certain angle(pitch,yaw,roll):
Code:
object RotatePitch(degrees,time in seconds);
object RotateYaw(degrees,time in seconds);
object RotateRoll(degrees,time in seconds);
But I recomend you using this other command, is far completer because it allows you to rotate the object in the 3 ways using a period of time.
Code:
object RotateTo((pitch,yaw,roll),time in seconds);
Lets go into our example and lets rotate the object to the angles (60,30,20) in 5 seconds:
Code:
OMA RotateTo((60,30,20),5);
Thats it, now you know how to modify a object angles perfectly