Jump to content

Trouble with llSetAnimationOverride


Ace5762
 Share

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

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

Recommended Posts

So I've been working on trying to create an animation override, just something simple to start out with, using the example script for llSetAnimationOverride

Despite my

// Override the Sit, Stand and Walk animations
// 1. place this script and your animations in a prim
// 2. edit the animation names in the script to your animation's names
// 3. attach the prim to your avatar

string gMyWalk = "JG_Anim_Ankletie_Move";
 
default
{
    attach(key id)
    {
        if ( id ) llRequestPermissions(id , PERMISSION_OVERRIDE_ANIMATIONS);
        else if ( llGetPermissions() & PERMISSION_OVERRIDE_ANIMATIONS ) llResetAnimationOverride("ALL");
    }
    run_time_permissions(integer perms)
    {
        if ( perms & PERMISSION_OVERRIDE_ANIMATIONS )
        {

            llSetAnimationOverride( "Walking", gMyWalk);
        }
    }
}

 

However, despite a good deal of jiggery pokery, I've keep running into the same issue- for whatever reason, the animation will stop half way through the first loop, or not play at all, or if I bump into an object it'll sometimes kickstart it and it works properly until I stop walking again.

Anyone have suggestions on this one?

 

Thanks,

Diawl

 

 

Link to comment
Share on other sites

llSetAnimationOverride won't affect any of that.  All it does, in your script, is replace the default "Walking" animation with your own  "JG_Anim_Ankletie_Move".    The first thing to suspect is the anim itself.  If you have some other anim with a higher priority running (controlled by another script), it will interfere with yours.  If the anim itself is not a looping anim, it will play only one time and stop.  You need a timer to keep re-triggering it, or you have to buy a looping anim.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1440 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...