Jump to content

Stopping Looping Animations


LiLiMonsta
 Share

You are about to reply to a thread that has been inactive for 1199 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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;   
    }
}


 

 

 

 

Link to comment
Share on other sites

I don't thing that works any longer since the addition of bento.

Its why I've brought up on a few occasions at the Content Creators meeting the need for llFullStopAnimation() and llFullStopObjectAnimation() functions that will not allow a looped animation's loop-out portion to run and immediately stop it and remove it from the animation list.

Link to comment
Share on other sites

1 hour ago, Wulfie Reanimator said:

First question I would ask: is it really the only animation in llGetAnimationList?

What kind of situation are you in where the avatar's only animation is one to open their mouth? Not sitting on furniture, not using internal animations, nothing?

There are two animations - tho i dont call llGetAnimationList anywhere?

 

Its for a gag - so its an attached item that opens the mouth when the locked state is called

when the stopping function is called i’m trying to stop the looping animation

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1199 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...