Pick up items in a Platformer

I want the player to be able to approach an object, then have to press a key and while the key is pressed be able to drag/carry said an object. I haven’t been able to make it work with line trace as I don’t have a mouse.

You should take a look in Unreal’s VR template. They have implemented grab and release functionalities for objects. You might not be working in VR, but the implementation is the same.

this sounds exactly like a video i made MeleeWeaponPart2 - YouTube

These Item-Blueprints should have a collision box/sphere and if the player overlaps this box and press a collect button on gamepad/keyboard you choosed it should be attached to player or just save info on a datatable.

just a example