Lilyanah Demar
Working to make SL my RL
Join date: 15 Apr 2006
Posts: 212
|
12-28-2007 12:44
I am building an item like a computer and I want a script that will make some of the buttons blink on and off. I need the script to be full perm so I can change the time delay between the blinks on various buttons, Anyone have a script like this?
|
Dovic Battery
Registered User
Join date: 28 Aug 2006
Posts: 6
|
Need a blinking light script
01-02-2008 02:41
Here you go this should do what you want  ........................... copy everything below this line ............................. // red = <1,0,0>; // green = <0,1,0>; // white = <1,1,1>; // black = <0,0,0>; // gold = <0.5,0.5,0>; // blue = <0,0,1>; // orange = <1,0.5,0>; // yellow = <1,1,0>; // brown = <0.5,0.25,0>; // pink = <1,0.5,0.5>; // purple = <0.2,0,0.2>; // lime = <0.5,1,0>; // sky = <0.5,1,1>; // lavander = <0.2,0.2,0.4>; // you can use any of the colour codes above here in the colour vectors below . vector COLOR_1 = <1,1,0>; // yellow used vector COLOR_2 = <1,0,0>; // red used integer USE_COLOR_1; default { state_entry() { USE_COLOR_1 = FALSE; llSetTimerEvent( 2.0);// change blink speed here.. it's set to blink every 2 seconds } timer() { if (USE_COLOR_1) llSetColor( COLOR_1, ALL_SIDES ); else llSetColor( COLOR_2, ALL_SIDES ); USE_COLOR_1 = !USE_COLOR_1; } }
|
Volg Clawtooth
Registered User
Join date: 16 Dec 2007
Posts: 1
|
01-09-2008 09:34
From: Lilyanah Demar I am building an item like a computer and I want a script that will make some of the buttons blink on and off. I need the script to be full perm so I can change the time delay between the blinks on various buttons, Anyone have a script like this? Blink how, as in full Birght, not fullbright? Light, not light? or color change like the script above?
|
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
|
01-09-2008 09:36
I suppose light, like RL computers.
|
Flix Saiman
Registered User
Join date: 19 Dec 2006
Posts: 150
|
01-09-2008 09:37
also .. if your doing it on like a keyboard you might try and use an animation textures.. instead of a seperate prim for each light..
|