Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Strange script problems

Jenny Carlos
Registered User
Join date: 30 Aug 2005
Posts: 52
10-25-2005 13:34
Hello there. To who ever reads this ive seen some scripting problems with this new update.

One my dance foo is giving me "Couldn't find script ~** Control 1"
That script is there?

Thats really not what im upset about.
Ive got a product that relies on (attach) and strange things are happening now.
When attaching the hide is recieved and you can see the item rehide itself each time.
But when the else statement is met and the attached item is un attached the show is only being sent or recived not sure what one but about 5 or 10% of the time leaving the item still hid.

attach(key attached)
{
if (attached != NULL_KEY)
{
llWhisper(datab, "ghide";);

}
else
{

llWhisper(datab, "gshow";);
}

above is for transmitter part


below is the reciever part


listen(integer code,string name,key id,string msg)
{

{
if(msg=="gshow";)
{

llSetLinkAlpha(1,alpha1,ALL_SIDES);


}

if(msg=="ghide";)
{

llSetLinkAlpha(1,alpha2,ALL_SIDES);

}


I hope this info will help you lindens out and maybe get my scripts working agian .

Jenny Carlos
Nathan Stewart
Registered User
Join date: 2 Feb 2005
Posts: 1,039
10-25-2005 14:01
A quick explanation i remember was that if the script was complicated and it didnt get round to the attach event before the actual object was detached then the event wouldnt be called, so firing on detach is not 100% reliable especially in laggy sims, not sure if having this running in a seperate script would help you
_____________________