How can I get the name of all objects that occupy a specific xy point on space?

I cant figure out how to get the name of the objects that occupy a specific point in the xy space.
I made a simple BPscript that returns the name of the clicked object using GetHitResultUnderCursorByChannel
or OnBeginCursorOver, and it works, but obviously it returns only the name of the object that is in higher position respect z (the object I really click and i I really watch) not of the objects placed behind, but that physically shared two coordinates.

In other words, if I click or I move the mouse to a specific xy point, i want to get the name of all objects along the z position that share the same xy (the line by trace stop when the highest object is “hit”).

Thank you in advance.

Instead of using a line trace, you should use a Multisphere trace for instance. I ives you an array of what was hit.

I did that in my player controller and got it working :

Thank you for the response! I didn’t know that object. I tried also with MultilineTraceForObjects and it seems to work. Is there a way to route the names in order to remove the doubles and to detect when each object is hit and it’s not hit (for each specific object, get an impulse when the interaction starts and when it ends)? Like when I use OnBeginCursorOver and OnEndCursorOver?