Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llTargetOmega problem

Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
10-15-2007 10:30
Hi,

I have made 2 scripts 1 with a swim animation and 1 with a that rotate a prim.
The rotate script is in big cylinder and at the outside of the cylinder a kind of poseball that hold the swim script (they are linked)

When someone sit on the poseball the big cylinder start to rotate and when he/she
standup the rotate stop.

The problem is that the rotate script don't stop always when i standup (about 50%).
and another problem is that sometimes it looks that it stop on my screen but at another persons screen it still rotate.

When i tested it the message from the other script comes threw to this script
(used llSay to check this and the str passes by is correct everytime)

Another scripter has checked my scripts and he thinks the scripts are correct but that
there is a bug in llTargetOmega and he don't know a good workaround for this

Does anyone knows this problem and knows a way to solve this?

<the rotate script>

default
{

state_entry()
{
llTargetOmega(<0,0,0.1>,0*PI,1.0);
}


link_message(integer sender_num, integer num, string str, key id)
{
llSay(0, str); //for test only

if (str=="Rotate Off";)
{
llTargetOmega(<0,0,0.1>,0*PI,1.0);
//llTargetOmega(<0,0,0.1>,0 , 0);
//llResetScript();
}

if (str=="Rotate On";)
{
llTargetOmega(<0,0,0.1>,-1.25*PI,1.0);
}
}
}
Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
10-15-2007 11:41
Unfortunately llTargetOmega is borked at the moment when trying to stop it.

You'll find a number of posts in 'Scripting Tips' about this, including here:

/54/f7/204274/1.html

Please vote on this JIRA issue for it to be fixed :)

http://jira.secondlife.com/browse/SVC-54

As for workarounds, I asked the same question recently and was told:

From: someone
There is no solution that works all the time or even most of the time.
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
10-15-2007 11:58
thanks,

Didn't know that. i already vote for it i hope they solve it soon.
Weird i have searched for llTargetOmega but didn't find that post.
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
10-15-2007 13:52
The workaround that seems to work best for me is to turn off physical and then set omega (not target omega).