Jump to content

1 Script for Multiple Meshes - Texture Changer

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;

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


Thanks in advance

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...