|
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
|
03-20-2008 22:36
I just noticed that my chairs say this error message on the debug channel when the agent sitting on the chair logs out. This did not happen when I first created these chairs. My sit script always checks for animation permission before calling llStopAnimation. But now llGetPermissions() & PERMISSION_TRIGGER_ANIMATION is true even though the sitting agent has logged out.
Perhaps Linden Lab has changed the logout process so that the agent is logged out before the changed event in my sit script is invoked. But it seems like an LSL bug that my sit script still has animation permission for an agent that has logged out. My work-around is to check that llGetPermissionsKey() is not NULL_KEY and llGetAgentInfo(llGetPermissionsKey()) is non-zero before calling llStopAnimation.
Anyone else seeing odd permissions behavior when agents log out?
|
|
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
|
03-20-2008 23:02
I've always made this sort of assumption in my scripts that require permissions, as I've been seeing it for a long time. For that sort of situation, permissions are generally only requested from the changed event, and I just check llAvatarOnSitTarget to make sure the agent still exists, and if not, then I would cancel out any running timers or flags for code requiring permissions. For animations, though, checking permissions right before using any functions is a good idea, like you have.
|
|
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
|
03-21-2008 00:38
From: BamBam Sachertorte Anyone else seeing odd permissions behavior when agents log out? Yes, I have realized it recently. I'll put your workaround to the touch. Thank you.
_____________________
 Seagel Neville 
|