# When I pick up the gun it won't disappear and get into my hand

**URL:** <https://forums.unrealengine.com/t/when-i-pick-up-the-gun-it-wont-disappear-and-get-into-my-hand/471505>\
**Category:** Community & Industry Discussion\
**Tags:** weapon, spawn, attach, unreal-engine, pickups, question\
**Created:** [September 17, 2020, 8:05pm UTC](https://forums.unrealengine.com/t/when-i-pick-up-the-gun-it-wont-disappear-and-get-into-my-hand/471505 "2020-09-17T20:05:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gisbitus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gisbitus](https://forums.unrealengine.com/u/Gisbitus)\
**Post date:** [September 17, 2020, 8:05pm UTC](https://forums.unrealengine.com/t/when-i-pick-up-the-gun-it-wont-disappear-and-get-into-my-hand/471505/1 "2020-09-17T20:05:05Z")

</div>

I set up a blueprint with a static mesh for a weapon pick up. What I’m trying to do on pickup is destroy the static mesh and get the actual skeletal mesh in my hands, but it won’t work. The weapon gets equipped correctly because I can shoot it and the ammo works too, but the static mesh stays there and the skeletal mesh won’t appear in my hands. I hope the code I’m showing is enough, other wise I’ll get more specific!

 ![314069-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/4/7443940f4135e3eb83ea82d9b2beb9c43f601363.png)

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [September 17, 2020, 9:21pm UTC](https://forums.unrealengine.com/t/when-i-pick-up-the-gun-it-wont-disappear-and-get-into-my-hand/471505/2 "2020-09-17T21:21:50Z")

</div>

You can destroy the actor on the ground all together when it get’s picked up and then spawn a new one in your hands.  
2nd screenshot. Cast to Weapon\_Base. You don’t need to cast to it as you just spawned Weapon\_Base and you could use the blue output pin or the variable you set. Not that’s isn’t the main issue here. Your attachment doesn’t make sense. You want to attach to some place in your player character, right now you’re attaching weapon to itself.  
Here’s roughly how it should look like. I have this setup in my project and it works.

 ![314075-attach.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/2/0124f5b47a6b923a811692fb310811b9ccce91e9.png)

---

<div class="post-metadata">

**Author:** ![Gisbitus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gisbitus](https://forums.unrealengine.com/u/Gisbitus)\
**Post date:** [September 19, 2020, 4:34pm UTC](https://forums.unrealengine.com/t/when-i-pick-up-the-gun-it-wont-disappear-and-get-into-my-hand/471505/3 "2020-09-19T16:34:01Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [September 19, 2020, 5:56pm UTC](https://forums.unrealengine.com/t/when-i-pick-up-the-gun-it-wont-disappear-and-get-into-my-hand/471505/4 "2020-09-19T17:56:34Z")

</div>

You’re welcome. 🙂
