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 Lazer_script  

Lazer_script

Lazer script.lsl

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

the Zip file

Download all files for Lazer_script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Lazer_script_1.lsl
1
2 integer on = FALSE;
3 lazer()
4 {
5 // Particle Parameters taken from script by Jopsy Pendragon
8 PSYS_SRC_BURST_PART_COUNT,(integer) 20, // adjust for beam strength,
13 PSYS_PART_START_SCALE,(vector) <0,.1,0>,
14 PSYS_PART_END_SCALE,(vector) <.04,.5,0>,
16 PSYS_PART_END_COLOR,(vector) <.2,0,0>,
24 ] );
25 }
26
27 switch()
28 {
29 if( on == TRUE )
30 {
31 on == FALSE;
33 llOwnerSay("Lazer is OFF" );
34 }
35 else
36 {
37 on == TRUE;
38 lazer();
39 llOwnerSay( "Lazer is ON" );
40 }
41 }
42
43 init()
44 {
45 switch();
46 }
47
48 default
49 {
51 {
52 init();
53 }
54 on_rez( integer param )
55 {
56 init();
57 }
58 touch_start( integer num )
59 {
60 switch();
61 }
62 }
63 // END //

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