Pickup and destroy object on cursor over

I’m trying to get a simple action going. In first person, when the player is close enough, and when the crosshair/cursor overlaps the object, you press ‘use’, and the object is destroyed.

I can destroy the object when I’m in the trigger area, but how do I also check for the cursor to be over it. As you can see in the image, there is no way to connect it the cursor check to the branch.

If you are trying to destroy an actor in the game world (like a mesh) on a mouse over. Then you will need to use a linetrace from mouse cursor location. Here is a YouTube tutorial: Linetrace From Mouse Cursor Location | Convert Mouse Location To World Space -Unreal Engine Tutorial - YouTube

Here is a reference page to learn more about linetrace: Using a Single Line Trace (Raycast) by Channel | Unreal Engine 4.27 Documentation

Here is an example of one way to achieve that:

Thank you for replying.

I did actually get Line Traces working earlier today, but I don’t really understand how to use them. Specifically, I don’t know how to connect them to a branch and check them.

If you connect the Hit Actor to the target of the DestroyActor it should destroy the actor.

Thank you!

I had already tried connecting the blue to blue, but nothing had happened. Since you confirmed it was correct I was able work out that the reason the can was not moving is because it was not set to static.