Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lweapon script rotate
- {
- void run(bool acw, int degrees_per_frame)
- {
- while(this->isValid())
- {
- if ( acw )
- {
- this->Rotation -= degrees_per_frame;
- if ( this->Rotation < 0 ) this->Rotation += 360;
- }
- else
- {
- this->Rotation += degrees_per_frame;
- if ( this->Rotation > 359 ) this->Rotation -= 360;
- }
- Waitframe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement