# Weapon won't connet to socket after I detached it

**URL:** <https://forums.unrealengine.com/t/weapon-wont-connet-to-socket-after-i-detached-it/440675>\
**Category:** Blueprint\
**Tags:** socket-reference, add-component, unreal-engine, UE4, Blueprint, question\
**Created:** [January 5, 2019, 11:22am UTC](https://forums.unrealengine.com/t/weapon-wont-connet-to-socket-after-i-detached-it/440675 "2019-01-05T11:22:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gensuke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gensuke](https://forums.unrealengine.com/u/Gensuke)\
**Post date:** [January 5, 2019, 11:22am UTC](https://forums.unrealengine.com/t/weapon-wont-connet-to-socket-after-i-detached-it/440675/1 "2019-01-05T11:22:25Z")

</div>

I pick my weapon up with linetrace and add the actor to my socket.  
When I drop the weapon I use detatch from component & simulate physics for a view seconds.  
But this is only working for the first pick up.

When I do my linetrace pickup on the droped weapon, I get information, it plays my animations and I can shoot, but the weapon mesh stays on the ground.

I would realy appreciate if some one knows the answer to this problem.  
This bothers me awhile now and I can’t fix it…

 ![264253-linetrace-pickup-bp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/c/8ec1eacf9f39fcd5dc03b1e8e62029f95f7e3bce.jpeg)

 ![264254-weapon-drop-function.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/f/19f81a1ea232cbbf992e5bdeed80b3a113df8e6b.png)

 ![264252-pickupweapon.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/4/1a42809860c5da741a01c181568b950feb0f8b7f.jpeg)

---

<div class="post-metadata">

**Author:** ![Gensuke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gensuke](https://forums.unrealengine.com/u/Gensuke)\
**Post date:** [January 14, 2019, 8:40pm UTC](https://forums.unrealengine.com/t/weapon-wont-connet-to-socket-after-i-detached-it/440675/2 "2019-01-14T20:40:10Z")

</div>

I found the bug (first sreenshot). I droped the gun in the same time I picked it up.  
Now I run a check if a weapon from the same type is already holstered and only then I drop the already holstered weapon.!

alt text
