zzzz

Join us in Phaze Demesnes or follow us:

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 + OpenSim

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 //