JcItemContainer

A Inventory container is a child class of JCInventoryCore, however it is linked to a static mesh and has a few functions for handling players interacting with it.

It can be used for lootable things in the world, think dead bodies, lockers, chests etc.

IsOpen:
Clinet Variable, set to true if the player has the container open. Set by 'Set To Open' Function.

RangeForOpen:
Float variable, how far the player can walk away from the container and have it still open. If set to 0, the player can walk away from it forever.

ContainerMesh:
The static mesh that the container will use.

ContainerName:
The containers name once its open in UMG.

ItemsInContainer:
The items that will be inside the container, made from a JCContainerItemStruct array. They are added on Begin Play. They can be set on spawn or in the editor.

Add items Into Container From Class
Specify a item class to add to the inventory. Expensive because it calls Get Item Data from class. Can only add 1 of each.

Add In Items Into Container From Item Data
Add items to the container by item data, better then the above function because there is no need to call Get Item Data from class. Cannot specify quantity of each item.

Add Items Into Container From Container Struct
The recommended way to add items to a container. You can specify the class, quantity and inject attributes. Uses a JCContainerItemStruct array.

Set to open
Used to set up tick to check if the player moves away from the container

Close Bags In Container
Should be called when the player closes the container, closing any JCBackpackContainer's that where in the container that the player had open

Setting up items inside the container on spawn
This code executes on begin play on our JCContainerItemStruct array called Items in Container. It is editable in the editor window to fill containers with items before the player reaches them, and also exposed to spawn if you wish to create a container at run time.