I am still trying to learn my way around scripts, and have been working on a way to turn sounds on and off. This is what I have right now, it works fine for switching between the sounds, but I am not sure what to do to turn off all of the sounds. Any help would be appreciated .
Thanks
This is what I have right now.
*************
default
{
state_entry()
{
llListen(0,"","","rainon"
;llListen(0,"","","rainoff"
;llListen(0,"","","rainstorm"
;}
listen(integer number, string name, key id, string message)
{
if(message=="rainon"

{
llLoopSound("rain1", 0.75);
}
else if(message == "rainstorm"

{
llLoopSound("rain4", 0.75);
}
else if(message == "rainoff"

{
llLoopSound("cricket", 0.75);
}
}
}