Combat system error

I made a combat system, and I wanted to make a different reaction to blows through physical materials. In this case, I just made a text output for debugging. And everything works, but when I turn off the game, a lot of errors come out in the console. Errors disappear if you put is valid before Print String, but then the logic stops working, I don’t quite understand how to solve it.

put the IsValid on the BlockingHit so you know you’ve hit something,

then you could use a pureisvalid on the Material and into a select node which if false returns a ‘default’ surface type

Awesome information! Thank you for helping!