Random sound effects sometimes not playing

Greetings,

I have an object here that can bounce against things, and when it does, I want it to play one of three random timpani boing sounds. So to avoid copy-pasting code, I decided to make it a function call:

However, while testing, I’ve noticed that the boing sound just straight up doesn’t play sometimes. It’s very inconsistent, the sound mostly works, but sometimes it just straight up feels like not playing the sound.

How can I ensure that this sound effect plays EVERY time instead of just sometimes?

It’s picking a random number from 0 to 3 but I don’t think it’s checking for 3. Also, I don’t think the trigger once is needed.

1 Like

I can’t believe I made a mistake like that, my bad

Thanks!

1 Like