Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Only changing to certain colours?

jamieparsons Lemon
undergrad n00b
Join date: 5 Nov 2008
Posts: 36
12-04-2008 21:39
for(a = 2; a < 14; a++)
{
llSetLinkColor(a, <255,255,255>, ALL_SIDES);
llSleep(0.08);
llSetLinkColor(a, <175,84,29>, ALL_SIDES);

}


When I have the second llSetLinkColor to <247,255,0> It works without a problem. I changed the colour of it as above and now it just changes white and doesn't change to the other colour (orange) :( does anyone have any idea why this would be? :/ Cheers
jamieparsons Lemon
undergrad n00b
Join date: 5 Nov 2008
Posts: 36
12-04-2008 21:50
just to add that its a timer function that calls another function outside of default... creates a wee loop kinda thing.

Just thought I'd mention this in case it has something to do with delay of the script or execution time... would it?
icktoofay Kamachi
Registered User
Join date: 10 Nov 2007
Posts: 17
12-04-2008 22:00
LSL uses colors in a range of 0 to 1, not 0 to 255 as it is in the edit window and other places. If you'd like to use 0 to 255 RGB values, divide them by 255. So no, it has nothing to do with delays or any of that. Just switch to a different scale.

http://wiki.secondlife.com/wiki/Category:LSL_Color
jamieparsons Lemon
undergrad n00b
Join date: 5 Nov 2008
Posts: 36
12-04-2008 23:15
thanks very much icktoofay... all sorted now :)