Download

How to check cursor position(or click) over a specific actor?

I don’t want to switch the possessed pawn, but I want to create some event when some member variable (also as some pawns) of the possessed pawn is clicked by the mouse. I searched online and there seems to be some functions to detect which actor is under the cursor, however, that would be super unnecessary if I have many actors but just want to check against one of them. Is there any way (either in blueprint or c++) we can just check cursor position against an actor/pawn we specified?