Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Question about alpha texture cycler

Simon Metalhead
Rock Star
Join date: 26 May 2003
Posts: 187
09-25-2005 21:28
Eh everyone, got a question about a script i just came across... it's a script where you can click/touch and cycle through the different alpha levels for a prim the script is in.. pretty much a window tint script... i was wondering about ways to edit the script to make it so you can assign who has access to change the tinting/alpha level of it ie.. like maybe an access list thing or notecard of who can use etc... any help would be appreciated, thanks :D

CODE
default
{
state_entry()
{
llSetAlpha(0.95, ALL_SIDES);
}

touch_start(integer total_number)
{
state one;
}
}

state one
{
state_entry()
{
llSetAlpha(0.7, ALL_SIDES);
}

touch_start(integer total_number)
{
state two;
}
}

state two
{
state_entry()
{
llSetAlpha(0.4, ALL_SIDES);
}

touch_start(integer total_number)
{
state three;
}
}

state three
{
state_entry()
{
llSetAlpha(0.2, ALL_SIDES);
}

touch_start(integer total_number)
{
state default;
}
}
_____________________
Come visit me at Natoma (0,0)
_________________________________
Come check out www.rock66.com and sign up! We have given away lots of L$ in our SL Arcade contests! Keep an eye out for more upcoming contests!
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
09-25-2005 22:13
CODE

list users =["user1","user2","user3"];
string av;

touch_start(integer total_number)
{
av = llDetectedName(0);

if (llListFindList(users,[av]) == -1) llSay(0,"sorry");
else llSay(0,"acess granted");
}
Simon Metalhead
Rock Star
Join date: 26 May 2003
Posts: 187
09-25-2005 22:49
Hmm, okay this is different then the sample you sent I think... i'll try to put that in there and see if that works, thanks :D
_____________________
Come visit me at Natoma (0,0)
_________________________________
Come check out www.rock66.com and sign up! We have given away lots of L$ in our SL Arcade contests! Keep an eye out for more upcoming contests!
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
09-26-2005 17:40
the sample i sent you has nothing to do with user list's its just a much better switcher