Hi, all. I have very happily downloaded a free ocean sound, edited it, converted it, and it plays fine *inworld* upon Touching a containing prim. I set up the same thing in one of my standalones and, while the script appears to *run* (I see "starting loop sound" and "Stoping sound"), I don't actually *hear* the sound LOL. Also sounds don't yet Play in World in my standalones, which is probably the problem. The code follows below. Is there any way to tweak the code to make it reference a Play Locally mechanism upon Touching a containing prim, or is that impossible?
// *** Loop sound by Touch
// *** by Samantha Fuller ***
// *** ver 1 for OLG alpha .5 - April 26 /08 ***
integer on;
default
{
state_entry()
{
// this now causes a short hicup 4-26-08
llLoopSound("waves1-cvt1",1);
llWhisper(0,"starting loop sound");
}
touch_start(integer touches)
{
if (on == 0)
{
on = 1;
llLoopSound("waves1-cvt1",1);
llWhisper(0,"playing sound");
}
else
{
on = 0;
// llStopSound(); // isen't working as of 4-26-08
// playing any short sound results in stop, reduce volume for crude taper stop
llPlaySound("waves1-cvt1",.5);
llWhisper(0,"Stoping sound");
}
}
}
Thanks a lot.
Charm :-)