Hi guys, I'm having trouble, and I hope someone can help. I'm not at all a scripter, I know virtually nothing about it, but I really need a script for an item I'm making, and finding one that does the specific thing I need proved hard, so I thought I could make it. I'm making an item that has lights that I want to be able to turn a blinking effect on and off. By lights, I don't mean actual lit prims, but the mesh item has a certain face that when a texture I've made is set and animated using SetTextureAnim, it appears to blink the lights.
I have no issue with the blinking lights without an on and off function. I've used a simple SetTextureAnim call in the past with no issue whatsoever. It's when I want to add the on,off function plus it calling a new texture to act as tho the lights are no longer blinking but still on. Here's a gyazo of what I want to achieve through a touch on/off script. - https://gyazo.com/7c0f4e0c7052089924199d9ac4b5b2ee
So, it should be simple enough, but the things I've tried aren't working. If possible, I'd like to be able to use UUIDs instead of putting the textures into the mesh's inventory. What I tried to do and thought would work, didn't work, and I will paste below. Any help would be appreciated. I basically mashed the information I could find together, but obviously I either didn't use the correct type of functions, or I just don't understand how to put it all together and make it work. Thank you in advance.
string texture1 = "89811b99-fc0e-ced7-53b7-3a925b3f46d5";
string texture2 = "3b126c86-079c-7856-d48d-ef4b358bf785";
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, 1,1,1,1.0, 1,1.0);
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, 1,1,1,1.0, 1,0.0);
textureIsBeingAnimated = !textureIsBeingAnimated;