On begin overlap, how to respond only to a mesh component?

I have this on begin overlap event like this:

I wanted that this event only proceeds if the overlap component is a skeletal mesh,
but my npc has a sphere collision on his head that is triggering this event.

What am I doing wrong and how can i fix this? I want that this event proceeds only if overlaping with a skeletal mesh of any kind and ignore any other collisions

Thank you in advance

Hey @Lamaral14!

What it comes to my mind right now, is creating a custom collision for your Sphere Collision and try to ignore the overlap event, if that’s possible.

1 Like

This seems to work based on what you have in yours:

And if the sphere collision is overlapping then you can reject that event: I do not know what your NPC head component is but if you make a BP class for the sphere then add that to the BP you can also reject the BP_sphere class. Here I reject Sphere Collision component
The the other component is great for eliminating things.

1 Like

Thank you very much this helped me a lot, the sphere collision was for detecting if certain objects was above his head so it could crouch for exemple, i had to do a seperate BP with the sphere colision and on tick have it follow the desired npc, good thing it only one if it was more than one it would be vey much complicated, i wish it was a better way to do this, keeping the sphere collision on the same BP as the npc, the way you told me (putting the sphere collision BP in the npc BP) didnt generated overlap events and i need those overlaps events…

1 Like