Jump to content

1 Script for Multiple Meshes - Texture Changer


SerenaPufnstuf
 Share

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

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

Recommended Posts

Hi All!

I have a script that works fine on a mesh for changing the textures in the contents (4 seasons type thing) but when I join another mesh to it the script only changes the mesh i touch, is there a way of click one mesh to change all. Its a project for a sim wide, 1 click, to change the seasons:

integer g_NDX = 0;
 
default
{

    touch_start(integer total_number)
    {
        integer count = llGetInventoryNumber( INVENTORY_TEXTURE );
        if( count == 0 )
            return;
        if( g_NDX >  count - 1 ) 
            g_NDX = 0;
           llSetTexture( llGetInventoryName(INVENTORY_TEXTURE, g_NDX), ALL_SIDES);
        ++g_NDX;
    }
}

end

Thanks in advance

Link to comment
Share on other sites

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