Get Inventory Item Definition Count

jlayton75

New member
This is probably a very simple question, but I am trying to make a quest that requires the character to have a certain amount of an item in their inventory. Is there an API call that will allow me to look up an item definition count? I would appreciate any help!
 
For people who stumble unpon this thread, I answered it in Discord.
It's very simple to do:

Code:
var myItemDefinition = InventorySystemManager.GetItemDefinition("Apple");
var amount = m_Inventory.GetItemAmount(myItemDefinition);

But make sure to check the documentation as there are ways to get item amounts / info more precisely. Also the code is fully documented so do not be afraid to have a look and see all the functions available
 
Top