|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
12-09-2005 11:56
I have a script which animates avis besides the owner and what occasionally happens is that an avi will log out or leave the sim without removing themself from the objects permissions.
When this happens, there is a built in check to see if the avi is still in the sim and remove them. One of the things that is called during this is:
llRequestPermissions( current_dancer, FALSE )
I think that I need to call this to release permissions for the script, but when I call it the object whispers this error: Unable to find specified agent to request permissions. Even though this is not really an error, it looks like one to the user, so I would rather not have to call llRequestPermissions... is there another way to remove permissions?
Maybe llResetScript(); ?
_____________________
imakehuddles.com/wordpress/
|
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
12-09-2005 16:29
You could llResetScript, but why do you need to release permissions in the first place? Just move to another state where you're not calling any functions that require permissions. There's no harm in your script having permissions and keeping them until the next user rolls around. ==Chris
|
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
12-10-2005 03:17
Yes there is a problem... if the script retains permissions and I see them a few days later, and use my animation button bar, then it still animates them. Imagine that your friend had a Chimera and every time you saw them, you spontaneously started dancing, it would be annoying.
Anyway... i went with a script reset, seems to be working fine.
_____________________
imakehuddles.com/wordpress/
|