CODE
// Stacey Novi's Horribly Simple blinds script
// if you don't totally hate this, send me an IM :)
string id;
string owner;
// default is for the window to be mostly transparent
default
{
state_entry(){
llSetAlpha(.20, ALL_SIDES);
llSetColor( <0,128,55>,ALL_SIDES);
llSetTexture("2cb471c1-5457-7db9-8776-1f6b9a201388",ALL_SIDES);
}
touch_start(integer num_detected)
{
id = llGetLandOwnerAt( llGetLocalPos());
owner = llGetOwner();
if(id == owner){ state closed;}
}
}
state closed
{
state_entry()
{
llSetAlpha(1.0,ALL_SIDES);
llSetColor( <255,255,255>, ALL_SIDES);
llSetTexture("2cb471c1-5457-7db9-8776-1f6b9a201388",ALL_SIDES);
}
touch_start(integer num_detected)
{
id = llGetLandOwnerAt( llGetLocalPos());
owner = llGetOwner();
if(id == owner){ state default;}
}
}