Attach actor to component not working

Hello I have a question that I think has a pretty simple solution but I can’t seem to work it out.

I am trying to simply pick up this object.
The conditions for this are:

  • Clicking the left mouse button
  • Must be overlapping with the sphere collision box of the object.

When these are true, the object should be attached to a socket.
This works when I only use the overlapping sphere but in combination with the mouse click it won’t work.
What is surprising is that when I only use the mouse klick as the action to pick up the object, it doesn’t work eather so I think the problem is somewhere there but can’t figure it out.

Here are my blueprints.

336524-attach-1.png

Try doing it without the socket name

If that doesnt work, put a print string node between the left mouse button and the branch, to see if your left click is actually executing.
There is a chance that your left click is being consumed somewhere else, like maybe the player controller

Thank you so much!

Yes the mouse button was not firing when I attached the string.

I just needed to get the character input like this:

336545-solved.png

Works perfectly now thank you!