Sign in to follow this  
Followers 0
atrX

Rotating Entities

1 post in this topic

Basic Rotation Functions

These are the basic functions to rotate an entity often used:

Please login or register to see this code.

Bear in mind that when working with rotations pitch, roll and yaw depend on the entity's orientation on the x, y and z axis. Here's a picture that will help you in finding the function you'll need:

Image result for cod4 axis rotation

 

More?

There's 2 more handy functions to rotate entities but they're not as common as the ones previously mentioned:

Please login or register to see this code.

 

Waiting for a rotation to finish

When an entity finishes rotating a notify is sent named "rotatedone", this can be used to make a function wait for a rotation to finish.

Please login or register to see this code.

More on notify and waittill: 

 

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0