Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llcollisionsound not working consistently

Nuala Shippe
Registered User
Join date: 19 Jun 2008
Posts: 8
02-12-2009 05:55
I'm making a physical object where sounds are triggered by either a collision between the other physical objects in the item or with an avatar.

The problem is, the sounds are not triggering consistently. Sometimes the sound plays when I drop an object into a pile of other objects, and sometimes it doesn't. Likewise, sometimes running my avatar into an object will trigger the sound, and sometimes it won't.

The other (related) problem is that the objects are currently way too big for the design. I need them to be .4x.4.x.4 max, but I have them at .7 to just get the sounds to play...sometimes.

This is my script:

default
{
state_entry()
{
llCollisionSound("091402dc-f0ea-81d4-6ca0-728649a1c0c5",1);

}
}


What am I not getting about this? Any help would be greatly appreciated.

ETA: (Wherein your author had a hallucination)

ETA 2: still buggered. :( Maybe making them heavier would help?

ETA 3: Actually solved by turning off no-push on the parcel.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-12-2009 10:32
It could simply be that the viewer is having to download the sounds, so it can't play them right away. Have you tried waiting for a bit after such a collision to see if the sound plays after a delay?
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
02-12-2009 10:45
sadly, there is some kind of "vague bug" with collission sounds.. and in case no one has noticed,, collision sprites seem to have died.

We noticed some oddness while playing with various sound triggers, trying to make some good special effects for a project.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Nuala Shippe
Registered User
Join date: 19 Jun 2008
Posts: 8
02-12-2009 18:47
From: Hewee Zetkin
It could simply be that the viewer is having to download the sounds, so it can't play them right away. Have you tried waiting for a bit after such a collision to see if the sound plays after a delay?


Well, one sound wouldn't download and I scrapped it, but the others were passing the test of playing from my inventory right before and after I would collide with them.

I've been running into balls for about 4 hours total now, so I think those sounds are good and loaded into my cache, anyway.

But thank you so much for your suggestion! I know that not that long ago, I wouldn't have thought of it. :)