HELP!!!! random sound play when collision - failing so much!

Hi! Help please… I have a bunch (10) ragdolled avatars, floating in the space.
The kinect skeleton is tracked, box colliders are around some of the bones, so you can hit the rag dolls around. I want/need to have sound triggered when the user hit rag dolls. I need to have a list of sound, choose randomly between them.
So far I have all this BUT the triggering probably happens too many times, so my sound are chosen randomly but then they got cute because of many triggers (i guess?).
Hope someone can help, i search the all day (literally) without finding a proper working solution…
thanks in advance

Trigger usually happens many times a second, so playing a sound on the trigger will sound glitchy as it plays the sound many times.

Our Master Audio plugin has easy settable “retrigger limit” (of lets say 0.5 seconds) along with weighted variations, so this can all be done in minutes if you use our plugin.

Or you can code all that yourself if you like.
-Brian

thanks for the reply… i would like to try myself instead of buying assets, as I’m still into testing. Also, something (maybe) weird occurred: I deleted my script from the skeleton, just had the audio source attached to it and it does the same… so its not my script / collision the problem… or?

Not sure about what you mean on the last comment. But to make a sound not trigger too often, you’ll have to keep track of when the last time it was played, and then compare “now” to that time and only play the sound again if X amount of time has passed. If you wanted to code it yourself, that’s the gist of it.

You may be hearing weird 3d Doppler effects if your sound is 3d. Not sure.

thanks again for reply :slight_smile:
in the end i was able to say not to check collision until audio ends. So it work out fine.

thanks for the help, a lot, was really appreciated!

(also yes, i had all sound in 3D, did not know you have to check it off when import…)