I've been hard at work trying to script my very first gun - so far so good. I've had one small problem though:
When the shell is ejected from the gun, the sound will not play! When I drop the shell on the ground and copy it over, it plays just fine. Here is the script inside the shell:
CODE
default
{
state_entry()
{
llTriggerSound("UUID OF MY SOUND GOES HERE",1);
llSleep(10);
llDie();
}
}
I've also tried llPlaySound, with and without llSleep, with and without llDie (using temporary). I've also tried having the shells make the sound when they come into contact with another object. This works fine, but leads to sound spam when the shells hit eachother on the ground (I love this method, it makes the most sense - but the sounds are just too spammy that way).
Any help is greatly appreciated, thanks!
