Detaching A Weapon Help

Hello everyone, so what i’m doing is that I created a blueprint actor and added the weapon, and when i collide with it, it will get attached to the player’s socket (hand).
So I created a widget with the weapon’s icon with a button that will make you able to discard that item.
So the problem is , at the moment when I do that, i spawn the item back in the map but it doesn’t get detached from the player’s socket , so I figured if i use “Detach from actor” while the Blueprint actor with the weapon is set as target it will detach itself , but in the widget’s event graph I can’t reference the blueprint actor because when I cast to it I can’t find the right object for it, so if anyone can tell me what it should be or an easier way to do it i’d appreciate it.

Thanks in advance!

If this is the player character you should be able to “cast to player character” and “get player character” from any blueprint, widget or otherwise with no problem. Get player character is the object input pin for the cast node.