Skip to main content
Version: 5.0.1

Overview

The AGR Inventory Component is a flexible and fully network-replicated inventory solution that works in tandem with the AGR Item Component. Every inventory component makes use of an internal inventory container object to manage items.

Inventory Component Settings

Inventory Component Settings

Config

  • Inventory ID : The ID of this inventory.
  • Owner ID : The ID of the owner this inventory belongs to.
  • Container Default Transform : The default transform where the inventory container will be automatically spawned on begin play.

Equipment

  • Active Equipment Slots Map : Maps equipment slots to currently equipped items.

Events

On Item Updated

tip

Keep in mind that those events will be called only on the server, so there is no need for checking authority nor using RPCs.

On Item Updated event will be called when the item was updated.

On Item Updated

On Equipment Slot Updated

On Equipment Slot Updated event will be called when the equipment slot was updated.

  • Item 1 : Item in equipment slot that was updated.
  • Slot Action 2 : Type of the action that happened.
  • Slot 3 : Equipment slot that was updated.

On Equipment Slot Updated