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__On_Touch  

Sound_Prim_Script__On_Touch

Sound Prim Script - On Touch.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__On_Touch
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Sound_Prim_Script__On_Touch_1.lsl
1
2
3 // Sound Prim Script - On Touch
4 //
5 // Randomly picks a sound in inventory,
6 // plays it when touched.
7 //
8 // Set this between 0.0 and 1.0
9 float LOUDNESS = 0.5;
10 //
11 ////////////////////////////////////////////////
12 default
13 {
14
16 {
18
19 if( sounds <= 0 ) return;
20
22 if( soundname != "" )
23 {
24 llPlaySound( soundname, LOUDNESS );
25 }
26 }
27
28 }
29
30
31
32 // END //

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