Jump to content

can't find simple loop script ([SOLVED])


SiaNova Portal
 Share

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

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

Recommended Posts

Animation itself must be looped in the example below.

string gAnimationName = "wiggle_whiskers_curiously_loop";

default
{

    state_entry()
    {
        list anims = llGetObjectAnimationNames();
        integer len = llGetListLength(anims);
        integer i;
        while (i < len)
        {
            llStopObjectAnimation(llList2String(anims, i));
            ++i;
        }
        llStartObjectAnimation(gAnimationName);
    }

    on_rez(integer sp)
    {
        llResetScript();
    }

}

 

  • Thanks 1
Link to comment
Share on other sites

  • SiaNova Portal changed the title to can't find simple loop script ([SOLVED])
You are about to reply to a thread that has been inactive for 822 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...