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
Particles blue_light  

blue_light

blue light.lsl

Category: Particles
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for blue_light
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. blue_light_1.lsl
1
2 float age = 0.0;
3 vector color = <.25,.5,1>;
4 float gLampLevel = 0.0;
5 vector Brightness = <0.0, 0.0, 0.0>;
6
7 updateParticles()
8 {
19 PSYS_PART_START_SCALE,<1.0,1.0,1.0>,
20 PSYS_PART_END_SCALE,<2,2,2>,
22
23 if(age==0.0) gLampLevel=2;
24 else gLampLevel=1;
25
26 Brightness.x = gLampLevel/5;
27 Brightness.y = gLampLevel/5;
28 Brightness.z = gLampLevel/2;
29 llSetColor(Brightness, ALL_SIDES);
30 }
31
32 default
33 {
35 {
36 llListen(456456456,"",NULL_KEY,"");
37 }
38
39 listen(integer chan,string strn,key id,string message)
40 {
41 if(chan==456456456 && message=="blue off")
42 age = 0.01;
43 if(chan==456456456 && message=="blue on")
44 age = 0.0;
45 updateParticles();
46 }
47
48
49 touch_start(integer total_number)
50 {
51 if(age==0.0)
52 age = 0.01;
53 else
54 age = 0.0;
55 updateParticles();
56 }
57 }// END //

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