Hi there,
I was wondering why I'm getting this error when tryin to equip from a script Inventory access:
Error: Unable to equip item with ItemType Katana (Opsive.UltimateCharacterController.Inventory.ItemType) - the ItemType hasn't been added to the inventory.
I've even tried accessing the Inventory's ItemTypes directly:
but to no avail, is there something I'm doing wrong? I have tried forceEquip on .Pickup as well but nothing happens.
I was wondering why I'm getting this error when tryin to equip from a script Inventory access:
Error: Unable to equip item with ItemType Katana (Opsive.UltimateCharacterController.Inventory.ItemType) - the ItemType hasn't been added to the inventory.
I've even tried accessing the Inventory's ItemTypes directly:
C#:
gameObject.GetComponent<Inventory>().EquipItem(gameObject.GetComponent<Inventory>().GetAllItemTypes()[1];
but to no avail, is there something I'm doing wrong? I have tried forceEquip on .Pickup as well but nothing happens.