Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Express_mouth_open script

Toran Cruyff
Registered User
Join date: 25 Jun 2004
Posts: 11
12-28-2007 13:15
I have several scripts that do not work now due to SL patchs. I am looking for an expression/gesture script that will work without error. This also goes if it is in a prim that is linked to another. This is my main problem. When you sit on the prim with the actual script it works fine but when you sit on the other prim now that does not have the script it errors said script. This script worked fine for over a year until the last few patches. Does anyone have a fixed version of this script or know how to fix it?
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
12-28-2007 15:45
...what error are you seeing?
Toran Cruyff
Registered User
Join date: 25 Jun 2004
Posts: 11
12-28-2007 20:21
"DeepThroat: Script trying to stop animations but PERMISSION_TRIGGER_ANIMATION permission not set."

This is the error I get now...Here is the copy of the script which worked perfectly fine. No matter what prim you sat on when linked you did not get a error message and of course the script only engaged when you sat on the actual prim it was in. What has changed?

string animname = "express_open_mouth";
key avatar;

default
{
on_rez(integer sparam)
{
llResetScript();
}
changed(integer change)
{
avatar = llAvatarOnSitTarget();
if(change & CHANGED_LINK)
{
if(avatar == NULL_KEY)
{
llSetTimerEvent(0);
llStopAnimation(animname);
//llReleaseControls();
llResetScript();
}
else if(avatar == llAvatarOnSitTarget())
{
llRequestPermissions(avatar,PERMISSION_TRIGGER_ANIMATION);
}
}
}
run_time_permissions(integer perms)
{
if(perms)
{
llStopAnimation("sit";);
llSetTimerEvent(.5);
}
else
{
llUnSit(avatar);
llSetTimerEvent(0);
}
}
timer()
{
llStartAnimation(animname);
}
}
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
12-28-2007 20:35
im geting that same error on a bunch of my stuff to, the script looks right but it might be a internal sl glitch or something
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
12-29-2007 02:56
Try changing the line :

llStopAnimation(animname);

to:

if (llGetPermissionsKey()) llStopAnimation(animname);

That should put a stop to the "permissions not set" message.
Toran Cruyff
Registered User
Join date: 25 Jun 2004
Posts: 11
12-29-2007 09:17
Thanks a bunch that did the trick Boss