SerenaPufnstuf 4 Posted February 19 Share Posted February 19 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 post Share on other sites
KT Kingsley 725 Posted February 19 Share Posted February 19 See if using llSetLinkTexture instead of llSetTexture does what you want: llSetLinkTexture(LINK_SET, llGetInventoryName(INVENTORY_TEXTURE, g_NDX), ALL_SIDES); 1 Link to post Share on other sites
SerenaPufnstuf 4 Posted February 19 Author Share Posted February 19 Perfect! Works like a charm ty! 🤗 Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now