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 Loop_Sound_On_Distance  

Loop_Sound_On_Distance

The script

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

the Zip file

Download all files for Loop_Sound_On_Distance
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Loop_Sound_On_Distance_1.lsl
1 float distance = 10; //Distance in which to sense for Agents.
2 default
3 {
4 on_rez(integer start_param)
5 {
7 }
9 {
10 llSensorRepeat("","",AGENT,distance,PI,0.01);
11 }
12 sensor(integer num_detected)
13 {
15 }
16 no_sensor()
17 {
18 llLoopSound("",1.0);
19 }
20 }

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