Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Trying to stop animations, having probs

Dr Debruyere
Anna
Join date: 12 Jul 2008
Posts: 43
06-14-2009 17:50
Hi fellow scripters,

I am trying to script a very simple stop all animations script. I have seen others do it and it ought to be simple.

What I have so far:
<snip>
perms = llGetPermissions();
if (perms & PERMISSION_TRIGGER_ANIMATION) {
list anims = llGetAnimationList(llGetOwner());
integer n;
for (n=0; n<llGetListLength(anims) ;n++)
{
llStopAnimation(llList2Key(anims,n));
llSleep(0.2);
}
llOwnerSay( (string)n + " Animations Stopped";);
}
<snip>

This seems to stop animations at first. If a dance ball was the culprit they often restart. What is going on? Is it because I gave permissions to dance ball? If so, how do I revoke the permissions?

TY
Ravanne Sullivan
Pole Dancer Extraordinair
Join date: 10 Dec 2005
Posts: 674
06-14-2009 17:59
You can not revoke permissions unfortunetly.

This is most often caused by a script that cycles one or more animations using a timer and that does not properly handle when you get off the pose ball or other object running the script, you stop the currently running animation but it is soon restarted. There is no easy way to deal with this, sometimes but not always a relog will clear this.
_____________________
Ravanne's Dance Poles and Animations

Available at my Superstore and Showroom on Insula de Somni
http://slurl.com/secondlife/Insula de Somni/94/194/27/
Dr Debruyere
Anna
Join date: 12 Jul 2008
Posts: 43
Thank you I feared as much
06-14-2009 18:04
Thank you. I feared that it might be a rougue dance ball.
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
06-14-2009 18:39
From: Ravanne Sullivan
You can not revoke permissions

*Within LSL.
_____________________