Attach and Detach a static mesh from component and socket


Hello I hope someone can help me. I am using the point and click toolkit and have managed to attach a ball to a characters hand when picked up. It gets added to the characters inventory and when I want to go and use the item and he performs a throw action I want to somehow stop the ball from being attached
I have tried many different tutorials ive found online but they all seem to point towards a physics based asset which this is not. There is no documentation with the toolkit saying how to do so and nothing I try seems to work.
Its a static mesh added to a component on calling of a function, but when I go to call another function such as destroy the mesh nothing pops up

Hard to tell how you’re doing things but…

…seems to work. Do you think you could leverage it?

Thanks for your input, unfortunately none of the options work so I have messaged the person who made the tool kit to see if they know of a way as it was copied from a blueprint and adapted

The tool kit I am using is the point and click one and has a big framework involved and I am new to Unreal

Is that on the item being picked up event graph or the player ?

It’s the player that picks up stuff, so yeah. You wouldn’t want to duplicate script in a hundred different pickable items.

But you may have a game with no player or many players.

Then you organise stuff appropriately. If you have a point & click, a Controller BP may be ok, too.