devomage
Member
I'm diving a bit deeper into Inventory and have a couple questions. If you loop through your inventory:
C#:
//code snippets copied from InventoryBaseInspector.cs
var itemTypes = m_Inventory.GetAllItemTypes();
- The only way to tell if an itemType is an item is if it is in a slot? => a bow is always an itemType until equipped?
- How can you check if the itemType is a consumable?
C#:
if (m_Inventory.GetItem(j) != null && m_Inventory.GetItem(j).ItemType == itemTypes[i])
- How can I get a reference to the UsableItem?
- Assuming I cant get a reference to UsableItem. How can I get a reference to the consumable?