1 #using scripts\codescripts\struct;
3 #using scripts\shared\array_shared;
4 #using scripts\shared\callbacks_shared;
5 #using scripts\shared\system_shared;
6 #using scripts\shared\util_shared;
8 #insert scripts\shared\shared.gsh;
10 #namespace rotating_object;
26 function init( localClientNum )
28 rotating_objects = GetEntArray( localClientNum,
"rotating_object",
"targetname" );
35 self endon (
"entityshutdown");
45 if( isdefined(
self.script_noteworthy ) )
47 axis =
self.script_noteworthy;
50 if( isdefined(
self.script_float ) )
53 rotate_time =
self.script_float;
57 if ( rotate_time == 0 )
63 if ( rotate_time < 0 )
76 self RotateRoll( direction * revolutions, rotate_time * revolutions );
80 self RotatePitch( direction * revolutions, rotate_time * revolutions );
85 self RotateYaw( direction * revolutions, rotate_time * revolutions );
89 self waittill(
"rotatedone" );