# Spawn from my inventary

**URL:** <https://forums.unrealengine.com/t/spawn-from-my-inventary/4663>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [May 19, 2014, 6:49pm UTC](https://forums.unrealengine.com/t/spawn-from-my-inventary/4663 "2014-05-19T18:49:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![knack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knack](https://forums.unrealengine.com/u/knack)\
**Post date:** [May 19, 2014, 6:49pm UTC](https://forums.unrealengine.com/t/spawn-from-my-inventary/4663/1 "2014-05-19T18:49:17Z")

</div>

I do a basic inventory system with a menu.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/4/d544bba1d175318b484e55b6946f17c566b4fec0.jpeg "inventary unreal engine") ](https://www.youtube.com/watch?v=j2_TUwW8Kac)

I save my inventary in a a var actor.

Now i want spawn for drop, or attach my objects, i try “Get Class” for “Spawn Actor From Class” but Get Class return Class Object not Class Actor.

how can i got the class actor from my actor array?

i remember i have “cast to actor” if i use variable\>object but if i use variable-\>actor? i must use variable-\>object?

another questions its, i want add few hit boxes, its possible see that boxes for debug?  
thx.

---

<div class="post-metadata">

**Author:** ![knack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knack](https://forums.unrealengine.com/u/knack)\
**Post date:** [May 19, 2014, 7:48pm UTC](https://forums.unrealengine.com/t/spawn-from-my-inventary/4663/2 "2014-05-19T19:48:49Z")

</div>

ouch! i can asnwerd my first question.  
get-\>var-\>get class-\> cast to actor-\>spawn…

😕

---

<div class="post-metadata">

**Author:** ![knack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knack](https://forums.unrealengine.com/u/knack)\
**Post date:** [May 20, 2014, 4:39pm UTC](https://forums.unrealengine.com/t/spawn-from-my-inventary/4663/3 "2014-05-20T16:39:43Z")

</div>

hey. i got another problem.

i can drop weapons selecting from my inventory.

now i want equip the weapon, what i thinks it:

first spawn the selected item and then attach but i can’t attach with gravity/physics and i can’t (or not known how) disable gravity on the spawned object.

Any ideas how? or another way of do this.

i try for two hours… unsuccessfully ☹

---

<div class="post-metadata">

**Author:** ![leonn3k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@leonn3k](https://forums.unrealengine.com/u/leonn3k)\
**Post date:** [May 20, 2014, 4:45pm UTC](https://forums.unrealengine.com/t/spawn-from-my-inventary/4663/4 "2014-05-20T16:45:08Z")

</div>

Set up a socket on your skeletal mesh’s hand and then you can attach the weapon as a component 🙂

---

<div class="post-metadata">

**Author:** ![knack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knack](https://forums.unrealengine.com/u/knack)\
**Post date:** [May 20, 2014, 4:50pm UTC](https://forums.unrealengine.com/t/spawn-from-my-inventary/4663/5 "2014-05-20T16:50:43Z")

</div>

i have the socket the problem its i can’t attach without disable physics, the gun or object fall to the floor ☹
