An InventoryComponent enables its containing Actor to store InventoryActors in its inventory, and place them back into the game world.
Creating an InventoryComponent for an RPG
Getting ready
Make sure you've followed the Axis mappings – keyboard, mouse, and gamepad directional input for an FPS character recipe in Chapter 6, Input and Collision, before continuing with this recipe, as it shows you how to create a simple character.
Also, the Instantiating an Actor using SpawnActor recipe in this chapter shows you how to create a custom GameMode.