Hello. I destructible my mesh in blueprint. How to check if destructible? for example: if my character collision with mesh.
Hello there,
the only way that I can think of for this is by doing a raytrace. In this example, I do a quick sphere trace for destructible objects around the player once the player hits something and output the name of the destructible that was hit (if any).
Hope this helps!
Hey, Just for anyone who visits this post, to simplify the above, just check the hit object against its collision type.
I made this into a IsDestructable pure function for future use.
Thanks for this answer.
I was casting to a particular object class, which was extremely limiting! This little answer even helped me to better understand the whole enum thing. Really nice. I appreciate you sharing your knowledge!