Jump to content

Help wanted : Add a timer on a loop animation script


Kinadoto
 Share

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

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

Recommended Posts

Hello , I m almost clueless  to scripting , I have this script controlling a shooting stars texture " and I want to make it trigger every X amount of seconds to make it more realistic. Anyone can help :) 

 

default
{
   
    state_entry()
    {   
        llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES,0,1,1.0,1.0,0.2);
    }
 
    
}

Link to comment
Share on other sites

default
{
    state_entry()
    {   
        llSetTextureAnim(ANIM_ON | SMOOTH, ALL_SIDES,0,1,1.0,1.0,0.2); // no LOOP
        llSetTimerEvent(20.0+llFrand(5.0));
    }
    timer()
    {
        llSetTextureAnim(ANIM_ON | SMOOTH, ALL_SIDES,0,1,1.0,1.0,0.2);
        llSetTimerEvent(20.0+llFrand(5.0)); // repeated for a different llFrand result.
    }
} 

possibly?

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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