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
Sound Sound_Prim_Script__Loop  

Sound_Prim_Script__Loop

Sound Prim Script - Loop.lsl

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

the Zip file

Download all files for Sound_Prim_Script__Loop
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Sound_Prim_Script__Loop_1.lsl
1
2
3 // Sound Prim Script - Loop
4 //
5 // Repeatly plays the sound in inventory if there is
6 // ONE and ONLY ONE sound. Silent otherwise.
7 //
8 // Set this between 0.0 and 1.0
9 float LOUDNESS = 0.5;
10 //
11 ////////////////////////////////////////////////
12 Noisy()
13 {
15 {
17 if( soundname != "" )
18 {
19 llLoopSound( soundname, LOUDNESS );
20 }
21 }
22 else
23 {
25 }
26 }
27 ////////////////////////////////////////////////
28 default
29 {
30
32 {
34 Noisy();
35 }
36
37 changed(integer change)
38 {
39 if(change & CHANGED_INVENTORY)
40 {
42 Noisy();
43 }
44 }
45
46 }
47 // END //

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