Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Effects Blink_prim_2_colors  

Blink_prim_2_colors

//I made this script specifically so I could have a prim to flash between 2 colors. //Feel free to use it as you like.

Category: Effects
By : Tal Chernov
Created: 2013-08-04 Edited: 2013-08-04
Worlds: Second Life

the Zip file

Download all files for Blink_prim_2_colors
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Blink_prim_2_colors_1.lsl
1 //I made this script specifically so I could have a prim to flash between 2 colors.
2 //Feel free to use it as you like.
3 //Tal Chernov
4 integer x = 0;
5 default
6 {
8 {
9 llSetTimerEvent(2);//change number to slow down or speed up flash
10 llSetTexture(TEXTURE_BLANK, ALL_SIDES);//this ensures the prim stays blank as the texture
11 }
12 timer()
13 {
14 if(x == 0)
15 {
16 llSetColor(<1, 0, 0>, -1);//basic color change with 1 and 0. 1, 0, 0 is red. 0, 1, 0 is green. 0, 0, 1 is blue
17 x = 1;
18 }
19 else
20 {
21 llSetColor(<0, 1, 0>, -1);//setting the numbers to both the same will change the color. 1, 0, 1 is purple. 1, 1, 1 is white. 0, 0, 0 is black
22 x = 0;
23 }
24 }
25 }

Back to the Best Free Tools in Second Life and OpenSim.