I am completely stumped.
I have a looping bento animation to open the mouth - very simple
I want to stop the animation
Following the instructions here:http://wiki.secondlife.com/wiki/LlStopAnimation
If the animation to be stopped is the only playing animation (as found via llGetAnimationList), it will continue to play to its end (if looped it will continue indefinitely)
if you must stop a looped animation, playing a single frame non-looped one immediately after stopping it, at low priority, will clear the list.
I created a single frame non loop animation (i have a couple of varients)
However every single time it wont stop the looping animation after calling stop animation.
StoppingFunction()
{
playing = FALSE;
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
}
state locked
{
state_entry()
{
playing=TRUE;
llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
llSetTimerEvent(60.0);
}
}
run_time_permissions(integer perm)
{
if(perm && PERMISSION_TRIGGER_ANIMATION)
{
if(playing == TRUE)
{
llStartAnimation(anim);
}
else if ( playing == FALSE)
{
llStopAnimation(anim);
llStartAnimation(stopanim);
}
}
}
timer()
{
llSetTimerEvent(0.0);
state pending;
}
}
state pending
{
state_entry()
{
state locked;
}
}