Hello!
So, I've bought a script, but I have no idea how to modify it, because I'm not a scripter, I've tried for 5h but without any results.
I want to have 3 textures, not 2 textures. But at the part with (if, else, if else and everything.. I got lost)
touch_start(integer total_number)
{
if(currentstate)
switch(texture1);
else
switch(texture2);
}
}
Can someone edit it or help me? Please and thank you so much!
Here is the full script.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
string texture1 = "TEXTURE 1";//UUID of texture 1 (or inventory name if in inventorY)
string texture2= "TEXTURE 2";//UUID of texture2
string texture3= "TEXTURE 3";//UUID of texture3
float time = 0.0;//time to sleep in seconds
integer side = ALL_SIDES;//which side to change texture on
/////////////
//
integer currentstate;//the state its in either TRUE or FALSE
switch(string texture)
{
llSetTexture(texture, side);
currentstate = ~currentstate;//swith states
llSleep(time);
}
default
{
touch_start(integer total_number)
{
if(currentstate)
switch(texture1);
else
switch(texture2);
}
}