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

[Table of Contents]

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
Lights Flashing Light  

Flashing Light

A rapidly blinking light made from a prim

Category: Lights
By : Fred Beckhusen
Created: 2019-03-21 Edited: 2019-03-21
Worlds: Second Life

the Zip file

Download all files for Flashing Light
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Flash.lsl
1
2 integer primnum = 0 ; // change to the number of a prim that you want to flash
3 integer counter = 0;
4 Off() {
5 llSetLinkPrimitiveParamsFast(0,[PRIM_POINT_LIGHT, TRUE, <1,1,1>, 1.0, 10, .1, PRIM_FULLBRIGHT, ALL_SIDES,1, PRIM_GLOW, ALL_SIDES, 1.0]);
6 }
7 On() {
8 llSetLinkPrimitiveParamsFast(0,[PRIM_POINT_LIGHT, FALSE, <1,1,1>, 1.0, 10, .1, PRIM_FULLBRIGHT, ALL_SIDES,0, PRIM_GLOW, ALL_SIDES, 0.0]);
9 }
10 default
11 {
13 {
14 Off();
15 }
16 touch_start(integer total_number)
17 {
18 llSetTimerEvent(.1); // 1/10 a second between events
19 }
20 timer()
21 {
22 if(counter == 0)
23 On();
24 else if(counter == 1)
25 Off();
26 else if(counter == 2)
27 On();
28 else if(counter == 2) {
29 Off();
31 }
32 counter++;
33 }
34
35 }

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