# Attach and Detach a static mesh from component and socket

**URL:** <https://forums.unrealengine.com/t/attach-and-detach-a-static-mesh-from-component-and-socket/831952>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 29, 2023, 12:04pm UTC](https://forums.unrealengine.com/t/attach-and-detach-a-static-mesh-from-component-and-socket/831952 "2023-03-29T12:04:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ectomia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ectomia/32/632177_2.png) [@Ectomia](https://forums.unrealengine.com/u/Ectomia)\
**Post date:** [March 29, 2023, 12:04pm UTC](https://forums.unrealengine.com/t/attach-and-detach-a-static-mesh-from-component-and-socket/831952/1 "2023-03-29T12:04:03Z")

</div>

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/c/77c8bcfb4a715d22ca3bf7f070666b45c2fe756e.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/c/77c8bcfb4a715d22ca3bf7f070666b45c2fe756e.mp4)
  
 ![ballhelp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/4/69468e23aa25989b4788666698356e0e26e9e8aa.png)

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

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 29, 2023, 12:25pm UTC](https://forums.unrealengine.com/t/attach-and-detach-a-static-mesh-from-component-and-socket/831952/2 "2023-03-29T12:25:34Z")

</div>

> [@Ectomia](#):
>
> performs a throw action I want to somehow stop the ball from being attached

Hard to tell how you’re doing things but…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/e/ffe3b8d39e265f054bf0e99757573a2e293c12f1.png)

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

---

<div class="post-metadata">

**Author:** ![Ectomia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ectomia/32/632177_2.png) [@Ectomia](https://forums.unrealengine.com/u/Ectomia)\
**Post date:** [March 29, 2023, 8:10pm UTC](https://forums.unrealengine.com/t/attach-and-detach-a-static-mesh-from-component-and-socket/831952/3 "2023-03-29T20:10:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ectomia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ectomia/32/632177_2.png) [@Ectomia](https://forums.unrealengine.com/u/Ectomia)\
**Post date:** [March 30, 2023, 4:37pm UTC](https://forums.unrealengine.com/t/attach-and-detach-a-static-mesh-from-component-and-socket/831952/4 "2023-03-30T16:37:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 30, 2023, 5:16pm UTC](https://forums.unrealengine.com/t/attach-and-detach-a-static-mesh-from-component-and-socket/831952/5 "2023-03-30T17:16:18Z")

</div>

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.
