Jump to content
You are about to reply to a thread that has been inactive for 1544 days.

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

Recommended Posts

Posted

Hello! I'm using this script to animate a texture, but it only preloads one of them on hidden face. how to make it preload 3 textures at once on different faces? :)

integer count;

default
{

    state_entry()
        {   
        llSetTimerEvent(TIMER); 
        }
        
    timer() 
        {
                llSetTexture(llList2Key(texture,count), SHOWN_FACE);
                ++count;
                count %=llGetListLength(texture);
        llSetTextureAnim(ANIM_ON | LOOP, SHOWN_FACE, FRAMES_X, FRAMES_Y, 0.0, ALL_FRAMES, ANIM_RATE);
        llSetTexture(llList2Key(texture,count), HIDDEN_FACE);                           
    }
}

 

Posted
6 minutes ago, Rolig Loon said:

Study this >>> 

 

 

Thank you so much! additional two lines

            llSetTexture(llList2Key(texture1, count1-2), HIDDEN_FACE_2);
            llSetTexture(llList2Key(texture1, count1-3), HIDDEN_FACE_3);

seems does the job! :)

 

  • Like 1
You are about to reply to a thread that has been inactive for 1544 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
×
×
  • Create New...