Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

about a blinds script

Iraefer Revnik
Registered User
Join date: 3 Dec 2007
Posts: 10
04-23-2008 07:40
i find a script in forum about blinds script it changes the glass into two different textures but it chenges all sides of glass or none how can i make it change only one side of the glass to be changes can i make changes on that script or it is compilicated....
the script is below

default
{
touch_start(integer total_number)
{
llSetTexture("AF_blinds_out.tga",ALL_SIDES);//the texture shown in the default state is "window".
llSetAlpha(1.0,ALL_SIDES);//1.0 shows all of a texture, 0.0 shows none
llScaleTexture(1,1, ALL_SIDES);//adjusts texture scale if needed.
state blinds;

}
}
state blinds
{
touch_start(integer total_number)
{
llSetTexture("AF_Glass_stained.tga",ALL_SIDES);
llSetAlpha(1.0,ALL_SIDES);
llScaleTexture(1,1, ALL_SIDES);
state default;
}
}
Renee Roundfield
Registered User
Join date: 10 Mar 2006
Posts: 278
04-23-2008 09:12
Replace the "ALL_SIDES" with the face number of the side you want to change. With two lines, you could change the interior face one way and the exterior another too.

Here's a script that may be helpful (I haven't used it):
http://slexchange.com/modules.php?name=Marketplace&file=item&ItemID=491723

The wiki page on sides:
http://www.lslwiki.net/lslwiki/wakka.php?wakka=side