Download

Is it possible to let Character check which material is in front of him?

Hello UE Community!
I try to create a fence hit sound. The Problem is that i cant ! make a blueprint with my fence because i used it already as spline mesh in my landscape.

What i wanna do:
I added a collision box to my Character and my idea was to tell him IF a specific material has contact with the collision box, then he plays a Fence Hit Sound.

Do anyone know how i do this, that my char. blueprint plays a sound if he has contact with a specific material? Or are there any other options i dont thought about?

Thanks!

I would add tags to the objects like “wood”, “stone”, or “metal” and check tag on hit/overlap.

You can also try adding a physics material to the materials for those assets.