Hi folks -
I'm having a strange issue with llGetOwner(). Here's my code snippet (this is on a worn attachment).
default
{
attach(key attached)
{
if (attached != NULL_KEY) // object has been //attached//
{
llResetScript();
}
}
touch_start(integer total_number)
{
if(llDetectedKey(0) == llGetOwner());
{
// This does something
}
}
}
I have the llResetScript() there so that, the script resets, in case it has been attached to a new owner, so that the Owner updates. But maybe this is just paranoia. I had some problems earlier with the script remembering the owner and not updating when it changed hands.
My issue is that it seems to let ANYONE touch and activate the script, despite the llGetOwner() line in the script. Can anyone tell me why? Has something changed?
Thanks.