Play hit sound only one

I wanted to play sound when actor hits anything, but it hits more than once at time, so sound will be distorted. How to fix it?


Hey @Hazmat0S!

First, in your player char BP, navigate to the Components window on the top left, hit that Add button with a green plus (+) icon on it, and add a capsule collision like this:

Adjust it’s half height and radius from the Shape section in the Details window, and give it the same height but a slightly larger radius than the capsule component like this:

Then enable your capsule collision’s Generate Overlap Events property like this:

And under the Collision section, change the Collision Preset to Custom and set the object response for the Pawn class to ignore like this:

(Btw all these adjustments should be made on the capsule collision’s properties, so make sure that the capsule collision is selected before you navigate to the Details window, not the capsule component.)

Then implement this blueprint code into your Event Graph:

And with that the player char is all done! :blush:

Now make sure that the Generate Overlap Events property is also enabled for all the other actors that you expect to be collided with, and you’re good to go :innocent:

Hope this helps!

1 Like