LiLiMonsta Posted February 15, 2020 Share Posted February 15, 2020 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 More sharing options...
Lucia Nightfire Posted February 15, 2020 Share Posted February 15, 2020 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 More sharing options...
Wulfie Reanimator Posted February 15, 2020 Share Posted February 15, 2020 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? Link to comment Share on other sites More sharing options...
LiLiMonsta Posted February 15, 2020 Author Share Posted February 15, 2020 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 More sharing options...
Recommended Posts
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