AGR Pro Docs

AGR_InventoryManager

AGR_InventoryManager

Properties

InventoryId

Inventory Id

Guid Structure


InventoryStorage

Inventory Storage

Actor Object Reference


bDebug

Debug

Boolean


Events

OnItemUpdated

Called whenever an item is updated inside the inventory.

Outputs

Output Delegate

Delegate

Item

Actor Object Reference


Functions

AddItemToInventoryDirectly

Add Item to Inventory Directly

Inputs

Item

Actor Object Reference


AddItemsOfClass

Only works for stackable items

Inputs

Class

Actor Class Reference

Quantity

Integer

Outputs

Out Note

Text

Success

Boolean

Only works for stackable items

GetAllItemsOfClass

Get All Items Of Class

Inputs

Class

Actor Class Reference

Outputs

Filtered Array

Array of Actor Object References

Found

Boolean

Get All Items Of Class

GetAllItems

Get All Items

Outputs

Items

Array of Actor Object References

Get All Items

GetAllItemsOfTagSlotType

Get All Items Of Tag Slot Type

Inputs

Slot Type Filter

Gameplay Tag Structure

Outputs

Out Items with Tag

Array of Actor Object References

Success

Boolean

Get All Items Of Tag Slot Type

HasEnoughItems

Has Enough Items

Inputs

Item

Actor Class Reference

Quantity

Integer

Outputs

Out Note

Text

Success

Boolean

Has Enough Items

HasExactItem

Has Exact Item

Inputs

Item

Actor Object Reference

Outputs

Success

Boolean

Has Exact Item

OverwriteId

If you need to set inventory id to player's id or something and force change of id. ID i "savegame" serialized.

Inputs

Inventory Id

Guid Structure


RemoveItemsOfClass

Remove Items Of Class

Inputs

Class

Actor Class Reference

Quantity

Integer

Outputs

Out Note

Text

Success

Boolean

Remove Items Of Class

API documentation generated thanks to Kantan Doc Gen