Blueprints OnClicked only working at close range

I am unable to find a way to either
lock the mouse cursor to the centre of
the screen, or use the centre of the
screen as the mouse cursor. Is there a
way I can do one of these? Thank you!

Essentially, it sounds as if you wanted to identify objects by looking directly at them. Yeah, it’s pretty straightforward:

This is the most basic form of line tracing, it shoots a line from the camera location along the direction in which it is facing and checks whether anything visible gets in the way - you get plenty of information about the hit object once you break the struct.

If you’re unhappy with the implementation of the onClicked event in your cubes, you can try this:

I put this in the Pawn, you can put it in the character or the player controller where it actually belongs. It detects clicked on objects and destroyes them.