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
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.
Item
1 : Item that was updated.Update Type
2 : Type of the update that happened.
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.