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 Random_Sound_on_Collide  

Random_Sound_on_Collide

BRan.lsl

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

the Zip file

Download all files for Random_Sound_on_Collide
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Random_Sound_on_Collide_1.lsl
1
2 test( integer chargeval )
3 {
4
5 float SoundVal = llFrand(100);
6 if(SoundVal <= 33) llTriggerSound("ric2.wav", 10.0);
7 else if(SoundVal >= 66) llTriggerSound("ric1.wav", 10.0);
8 else llTriggerSound("ric4.wav", 10.0);
9 }
10
11 default
12 {
14 {
15 //llSay(0, "Hello, Avatar!");
16 }
17
18 collision_start(integer chargeval)
19 {
20 test( (integer) chargeval );
21 }
22 }
23 // END //

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