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
AO Footstep_Sounds  

Footstep_Sounds

Footstep_Sounds

Category: AO
By : RvA Hax
Created: 2010-07-01 Edited: 2010-07-01
Worlds: Second Life

the Zip file

Download all files for Footstep_Sounds
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Footstep_Sounds_1.lsl
1 key owner;
2 string sound;
3 integer walking0;
4
5 default {
7 {
8 owner = llGetOwner();
10 llSetTimerEvent(0.4);
11 }
12
13 timer()
14 {
15 integer walking = llGetAgentInfo(owner) & AGENT_WALKING;
16
17 if(walking && !walking0)
18 llLoopSound(sound, 0.4);
19
20 else if(!walking && walking0)
22
23 walking0 = walking;
24
25 }
26
27 attach(key id) {
28 if(id)
29 llPreloadSound(sound);
30 }
31
32 changed(integer c) {
33 if((c & CHANGED_OWNER) || (c & CHANGED_INVENTORY))
35 }
36 }

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