Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Listen not working for new owner

Guitar Petty
Registered User
Join date: 10 Jun 2006
Posts: 2
06-10-2006 14:31
I found that people are running into a problem..when they give objcts away or sell them new owners cant use the commands..here an answer!

Just copy and past this into your scirpt

CODE

changed(integer change)
{
if(change & CHANGED_OWNER)
llResetScript();
}
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Discussion Thread
06-10-2006 22:07
/54/77/113142/1.html
_____________________
i've got nothing. ;)
Jason Foo
Old Timer
Join date: 6 Feb 2004
Posts: 105
06-15-2006 10:18
you can also use this even simpler line...

on_rez()
{
llResetScript();
}
_____________________
If my doctor told me I had only six minutes to live, I wouldn't brood. I'd type a little faster.
Jason Foo
Old Timer
Join date: 6 Feb 2004
Posts: 105
06-15-2006 10:20
From: Guitar Petty
I found that people are running into a problem..when they give objcts away or sell them new owners cant use the commands..here an answer!

Just copy and past this into your scirpt

CODE

changed(integer change)
{
if(change & CHANGED_OWNER)
llResetScript();
}



Or just use:

on_rez()
{
llResetScript();
}
_____________________
If my doctor told me I had only six minutes to live, I wouldn't brood. I'd type a little faster.
Johnny Mann
Registered User
Join date: 1 Oct 2005
Posts: 202
07-14-2006 06:19
From: Nada Epoch



I personally do this for most of my scripts:

on_rez(integer start_param){
llResetScript();
}