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 Voice_Activated_Particle_Systems  

Voice_Activated_Particle_Systems

Voice Activated Particle Systems.lsl

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

the Zip file

Download all files for Voice_Activated_Particle_Systems
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Voice_Activated_Particle_Systems_1.lsl
1
2 integer ON = FALSE;
3 //
4 // Put your choice of channel on the next line - this one uses 0
5 integer channel = 0;
6 //
7 // Change this next line to FALSE if you want anyone to be able to use it
8 integer owner_only = TRUE;
9 //
10 // Change this line to be the command to switch on particles
11 string TON = "on";
12 //
13 // change this line to be the command to switch off particles
14 string TOFF = "off";
15
16 particle_system_on()
17 {
18 //
19 // cut and paste your generated particle script here
20 //
21 }
22 particle_system_off()
23 {
24 llParticleSystem( [] );
25 }
26
27 update_particles()
28 {
29 if( ON )
30 {
31 particle_system_on();
32 }
33 else
34 {
35 particle_system_off();
36 }
37 }
38
39 init()
40 {
41 llListen( channel,"","","" );
42 llSetText( "",<0,0,0> ,0);
43 //llSetText( ">>>Un comment this line & put your hover text in here if you wish<<<<",<1,1,1>,1);
44 ON = FALSE;
45 update_particles();
46 }
47
48 default
49 {
51 {
52 init();
53 }
54 on_rez( integer p )
55 {
57 }
58 listen ( integer ch, string nm, key id , string mess )
59 {
60 if( owner_only )
61 {
62 if( id != llGetOwner() )
63 {
64 if( llGetOwnerKey( id ) != llGetOwner() )
65 {
66 return;
67 }
68 }
69 }
70 if( mess == TON )
71 {
72 ON = TRUE;
73 update_particles();
74 return;
75 }
76 if( mess == TOFF )
77 {
78 ON = FALSE;
79 update_particles();
80 return;
81 }
82 }
83 }
84 // END //

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