Deleting Actors In Game - Voxel World

I am currently trying to make a voxel world, very similar to Minecraft. I am having trouble deleting boxes with pressing the right mouse button. I used a box and made it invisible in game to collide with the boxes. The idea was when I right clicked, the blueprint would check to see if I am colliding with the box. If I was, it would delete it. Instead, It deletes it, but then by just simply hovering over the other boxes, it will delete it as well. I can’t even spawn any more boxes. Below, I came up with two solutions. With one of them, I click the right mouse button, the game just stops. Any ideas? Maybe I’m missing something. I am pretty much new to Unreal 4

7417-bug2.png

In the second picture, the Other Actor and Target are connected between ONComponentBeginOverlap_Event and Destroy Actor. I forgot to show that.

I got same task and that is how I solved it (for FPS): by pressing RMB we tracing a line (casting a ray) from camera position (center of screen) to camera forward vector * 250 and if ray hit any destroyable actor then simple destroy that actor. You can add any conditions to check for actor type or whatever and filter destroyable actors from others if needed.

Wow, thanks! That really helped.

NP. Btw, you can visualize a casting ray in game view for easier adjustments, by setting Draw Debug Type parameter of Single Line Trace node.

Alright, I’ll try that if I need it. Thanks again!