I’m having an overlap issue.
I have a pickup that on overlap will destroy itself. The mechanics work fine. Run over it, trigger the pickup actions.
My character has a sphere component that is scaled to expand a set distance from the character, I am using it currently to apply damage on input button press to anything that the sphere overlaps.
Both mechanics separately work just fine. There is however one unforeseen niggle.
The sphere I’m projecting for my attack mechanic is overlapping my pickup - meaning that I end up triggering my pickup from some distance away. This, I don’t want! Overlap is going to form a large part of my attack mechanics, so I don’t want everything that uses this mechanic to trigger it, nor do I want the player to trigger it from a distance.
to this end, I’m trying to figure the following out.
My pickup is activated by an overlap trigger. Is there any method to check if the overlap is only the player character mesh. (If so I assume I can just return a True to gate before triggering the pickup actions).