# Inventory equip and unequip problem

**URL:** <https://forums.unrealengine.com/t/inventory-equip-and-unequip-problem/380373>\
**Category:** Editor Scripting\
**Tags:** Struct, inventory, unreal-engine, UE4, Blueprint, question\
**Created:** [December 28, 2016, 5:34pm UTC](https://forums.unrealengine.com/t/inventory-equip-and-unequip-problem/380373 "2016-12-28T17:34:12Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![anonymous\_user\_dceb25d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dceb25d5](https://forums.unrealengine.com/u/anonymous_user_dceb25d5)\
**Post date:** [December 28, 2016, 8:17pm UTC](https://forums.unrealengine.com/t/inventory-equip-and-unequip-problem/380373/5 "2016-12-28T20:17:35Z")

</div>

In your first image where you break the item structure down, that is where I would grab the name of the item and store it in the equipped string or array.

In your second image where you remove the index you would first create a check using the display name of the item or a custom tag, to make sure the index being removed from your inventory does not match the items that are equipped (stored inside that string/array).

if you still cannot get it check out this video set on making an inventory system in UE4…

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

This is what I used but I expanded on it greatly and it works for everything I need. The video is a little dated but it works.

---

_[View the full topic](https://forums.unrealengine.com/t/inventory-equip-and-unequip-problem/380373)._
