Sure thing...
The script I'm using is as follows:
// Simple rotation script using targetomega
//
vector axis = <0,0,1>;
//
float spinrate = 1.0;
//
float gain = 1.0;
//
//
// for a discussion on llTargetOmega values see
//
http://secondlife.com/badgeo/wakka.php?wakka=llTargetOmega//
integer on = FALSE;
//
//
// simple switch
// if on turn off
// if off turn on
//
switch()
{
if ( on )
{
llOwnerSay ( "Switching OFF rotation" );
on = FALSE;
llTargetOmega( <0,0,0>,0,0 );
}
else
{
llOwnerSay ( "Switching ON rotation" );
on = TRUE;
llTargetOmega( axis, spinrate, gain );
}
}
//
// At startup rotation is switched on automatically
//
init()
{
switch();
}
default
{
state_entry()
{
init();
}
on_rez( integer param )
{
init();
}
touch_start( integer num )
{
// Uncomment the following lines if you wish only the owner to have
// control over starting and stopping
if ( llDetectedKey(0) != llGetOwner() )
{
return;
}
// Touch to switch on and off
switch();
}
}
Is there a different form of rotation that might work? I'm definitely not the greatest at scripting - I mostly use found scripts.
Thanks.
