-------------------------------------------------------------------------------- -- Handler.......... : onEnterFrame -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function Weapon0.onEnterFrame ( ) -------------------------------------------------------------------------------- local r = this.nHelixRotation ( ) if ( r > 0 ) then object.setRotation ( group.getSubObjectAt ( this.getObject ( ), 0 ), 0, -90, 0, object.kParentSpace ) object.rotate ( group.getSubObjectAt ( this.getObject ( ), 0 ), 0, 0, r, object.kParentSpace ) this.nHelixRotation ( math.max ( 0, r - 360 * application.getLastFrameTime ( ) ) ) end -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------