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(); } } }