Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script trying to stop animations but PERMISSION_TRIGGER_ANIMATION permission not set

Laukosargas Svarog
Angel ?
Join date: 18 Aug 2004
Posts: 1,304
06-14-2005 14:45
Why am I suddenly seeing this everytime someone sits on one of my pieces of furniture...


"Script trying to stop animations but PERMISSION_TRIGGER_ANIMATION permission not set"


It's a lie ! I rezzed it, it's mine I gave my permission ! Since when have I needed to grant permission to other AVs ?

This started happening with the last update, anyone else seen it ?

Is it a known bug ?
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
06-14-2005 14:47
This may happen if someone has an Animation Overrider or other attachments taking control of their body, movement-wise. It appears 'cuz there's some sort of conflict with it making up its mind about how your av should move, I think. Could that be the case?
_____________________
Laukosargas Svarog
Angel ?
Join date: 18 Aug 2004
Posts: 1,304
06-14-2005 14:54
As far as I can see it looks like SL is sending me (the owner) the message when it should be sending them to the AV attempting to sit. This didn't happen before v1.6.6
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
06-14-2005 14:54
Maybe it's a new bug -- sounds unpleasant, any other creators you know having the same prob? I wonder what's going on here. Do you have furni inworld I can test with to see this for myself out of curiosity?
_____________________
Laukosargas Svarog
Angel ?
Join date: 18 Aug 2004
Posts: 1,304
06-14-2005 14:58
These are RELIC and Reverie chairs and other items with sit scripts. I didn't create these, just own them. And yes it's getting so annoying I'm getting tempted to bin them.
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
06-14-2005 14:59
The scripts are making bad assumptions - I'll bet you've got two or more sit-balls on that furniture. Change your scripts to only respond to the change() event if there's actually someone on that prim's sit target or if there WAS someone on the sit target but there isn't now.

CODE
string theAnim = "sit_ground"; // This is the name of the animation you want. "sit" is reagular sit "sit_ground" is cross-legged
string sitText = "Relax."; // When someone wants to sit here, this replaces that "Sit" text in the pie menu
vector sittingPosition = <0.1,0.0,0.2>; //This is the position. X, Y, Z This is what you need to mess with.

//If you sit and end up on your side or back, the prim you're using is rotated. You need to straighten it, or choose another prim to put this script in.


// *********************************************
// * *
// * Everything from here down you can ignore. *
// * *
// *********************************************
key agentKey = NULL_KEY;
integer permissionResult = FALSE;

init()
{
llSetSitText(sitText);
llSitTarget(sittingPosition,ZERO_ROTATION);
}

default
{
state_entry()
{
init();
}

on_rez(integer times)
{
init();
}

changed(integer change)
{

if (change & CHANGED_LINK)
{
key agent = llAvatarOnSitTarget();
if ( agentKey == NULL_KEY && agent != NULL_KEY )
{
agentKey = agent;
llRequestPermissions(agentKey,PERMISSION_TRIGGER_ANIMATION);
}
else if ( agentKey != NULL_KEY && agent == NULL_KEY)
{
if (permissionResult) llStopAnimation(theAnim);
llResetScript();
}
}
}

run_time_permissions(integer value)
{
if (value == PERMISSION_TRIGGER_ANIMATION)
{
permissionResult = TRUE;
llStopAnimation("sit");
llStartAnimation(theAnim);
}
}
}


Edit: Oops. Ok, they aren't yours. Time to ask Relic if they have updates >.<
_____________________