Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Object Rotation Touch to start Touch to stop

Sweetheart Baskerville
Registered User
Join date: 1 Jan 2004
Posts: 32
04-05-2006 11:29
I have this script. I'm making a sit and spin and few other spinning things...but I think this script only sees owner...it won't let anyone else start and stop it...is there a way anyone can fix this for me or I will pay you to make me a script....if you want me to pay...please im me inworld Sweetheart Baskerville ... Thank You

default
{
state_entry()
{
llSay(0, "Ready to RIDE!";);
state still;
}
}

state still
{
touch_start(integer total_number)
{
key name = llDetectedKey(0);
if (name == llGetOwner())
{
llTargetOmega(<0,0,1>,PI,1.0);
state rotating;
}
}
}

state rotating
{
touch_start(integer total_number)
{
key name = llDetectedKey(0);
if (name == llGetOwner())
{
llTargetOmega(<0,0,1>,0,1.0);
state still;
}
}
}
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
04-05-2006 11:33
This should take care of the owner thing.

CODE

default
{
state_entry()
{
llSay(0, "Ready to RIDE!");
state still;
}
}

state still
{
touch_start(integer total_number)
{
llTargetOmega(<0,0,1>,PI,1.0);
state rotating;
}
}

state rotating
{
touch_start(integer total_number)
{
llTargetOmega(<0,0,1>,0,1.0);
state still;
}
}
Sweetheart Baskerville
Registered User
Join date: 1 Jan 2004
Posts: 32
Thanks so much
04-05-2006 14:50
Thank you so much it worked...WOOOT!!!! you're a sweetie...