I found an llstopsound stuck somewhere in the night sounds, removed it and all is good.
everything worked fine for days
now all of a sudden its acting up again. The water is half flowing, half giving me this short "Ssh" sound which is it try to start and failing I'm assuming.
nothing has been changed on the script since it last worked:
CODE
list daySounds = ["American Oriole", "Robin", "Song Sparrow", "Tree Swallow", "Locust"];
list nightSounds = ["Great Horned Owl"];
list nightAmbient = ["Cricket", "cricket-2"];
list water = ["water-flowing1a"];
default {
state_entry() {
llStopSound();
llSetTimerEvent(2.0);
}
timer() {
vector time = llGetSunDirection();
list myList;
float density = 0.9;
llLoopSound(llList2String(water, 0), 0.2);
if (time.z > 0.0) {
myList = llListRandomize(daySounds, 1);
} else {
myList = llListRandomize(nightSounds, 1);
density = 0.98;
// Ambient nighttime sound
if (llFrand(1.0) > 0.85) {
} else {
llLoopSound(llList2String(nightAmbient, 0), 0.25);
}
}
if (llFrand(1.0) > density) {
llTriggerSound(llList2String(myList, 0), 0.25);
}
}
}