Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

target omega sometimes does not work, but if I detatch and re, it then works..WTF

RaptonX Zorger
Registered User
Join date: 26 Jan 2006
Posts: 79
05-31-2006 01:22
This has me compleatly baffled...I am having the target omega set off by a listen script...and at times it will just not work....



Here is the part that does the rotation at least


float spinrate;
integer spinning;



default
{
state_entry()
{
key owner = llGetOwner();
llListen(33, "", NULL_KEY, "";);
spinrate = 1.0;
}
on_rez(integer start_param)
{
llResetScript();
}



listen(integer channel, string n, key ident, string message)
{

if( llGetOwnerKey(ident) == llGetOwner() ) {






list customfilter;

customfilter = llParseString2List(message,[" "],[]);

if(llList2String(customfilter, 0) == "tents";){



llMessageLinked(-1,0,llList2String(customfilter, 1),"tent";);return;




}

llMessageLinked(-1,(0),message,"t";);



if(llList2String(customfilter, 0) == "spin";){
spinrate=(float)llList2String(customfilter,1);

llTargetOmega(<0,spinrate,0>,2*PI,1.0);

return;
}














}

}}
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
05-31-2006 03:49
welcome to my world
_____________________

tired of XStreetSL? try those!
apez http://tinyurl.com/yfm9d5b
metalife http://tinyurl.com/yzm3yvw
metaverse exchange http://tinyurl.com/yzh7j4a
slapt http://tinyurl.com/yfqah9u
Nexus Nash
Undercover Linden
Join date: 18 Dec 2002
Posts: 1,084
05-31-2006 07:50
Target Omega is rendered on the client. It doesn't actually make the object spin on the 'server'. It's been happening forever. It just gets stuck sometimes. I noticed with recent version it happens less but it still happens.
_____________________
Chance Takashi
Inimitable
Join date: 22 Feb 2006
Posts: 25
Voodoo...
05-31-2006 09:29
I don't know why this seems to work, or even if it actually does, but I was having similar problems until I started adding an llSetText call after every llTargetOmega call. The theory is that the llSetText "resets the prim" which makes the clients update with all the rotatey goodness.

Like I said, ymmv, but it works for me.