# How to disconnect object from parent socket

**URL:** <https://forums.unrealengine.com/t/how-to-disconnect-object-from-parent-socket/414733>\
**Category:** Community & Industry Discussion\
**Tags:** gun, drop, sockets, remove-from-parent, unreal-engine, question\
**Created:** [January 16, 2018, 8:48pm UTC](https://forums.unrealengine.com/t/how-to-disconnect-object-from-parent-socket/414733 "2018-01-16T20:48:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItsGabeGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ItsGabeGames](https://forums.unrealengine.com/u/ItsGabeGames)\
**Post date:** [January 16, 2018, 8:48pm UTC](https://forums.unrealengine.com/t/how-to-disconnect-object-from-parent-socket/414733/1 "2018-01-16T20:48:29Z")

</div>

I am making a game with AI, and I want it to drop the gun it has when it dies. I have it connected to a socket on the mesh skeleton I created.

Here’s what it looks like:

 ![227240-orange-ai-dude.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/8/568585b3cf2b2f6e5fb7f8be5c25d8c11131da87.jpeg)

][1]

---

<div class="post-metadata">

**Author:** ![vr\_marco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vr_marco/32/1194556_2.png) [@vr\_marco](https://forums.unrealengine.com/u/vr_marco)\
**Post date:** [January 16, 2018, 10:10pm UTC](https://forums.unrealengine.com/t/how-to-disconnect-object-from-parent-socket/414733/2 "2018-01-16T22:10:04Z")

</div>

You should try calling DetachFromActor for your Blaster mesh. Plus, if you want it to fall to the ground, you need to reactivate its Physics with Set Simulate Physics.

> **[DetachFromActor](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Utilities/Transformation/DetachFromActor/)**
>
> DetachFromActor

> **[Set Simulate Physics](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Physics/SetSimulatePhysics/)**
>
> Set Simulate Physics

---

<div class="post-metadata">

**Author:** ![ItsGabeGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ItsGabeGames](https://forums.unrealengine.com/u/ItsGabeGames)\
**Post date:** [January 16, 2018, 11:04pm UTC](https://forums.unrealengine.com/t/how-to-disconnect-object-from-parent-socket/414733/3 "2018-01-16T23:04:42Z")

</div>

Thanks! I called DetachFromActor on the blaster, but it just sat in the middle of the air not doing anything. To fix it, I created a static mesh out of the gun (it was a skeletal mesh) so I could use simulate physics. Turns out that if you simulate physics, you don’t need to detach it from the actor. Thanks for your help!
