default { state_entry() { llStopSound(); llSetTimerEvent(0.001); } timer() { if (llGetAgentInfo(llGetOwner()) & AGENT_WALKING) { state walking; } } } state walking { state_entry() { llLoopSound(llGetInventoryName(INVENTORY_SOUND,0),3); } timer() { if (!(llGetAgentInfo(llGetOwner()) & AGENT_WALKING)) { state default; } } }