ItemTransactionCollection and ammo UCC + UIS

Let me know if I use this collection. The weapon does not see ammo in the inventory. Does not see in the collection that is in the ItemCollectionNames list. How to be?

C#:
/// <summary>

/// Returns the amount of the specified ItemIdentifier.
/// </summary>
/// <param name="itemIdentifier">The ItemIdentifier to get the amount of.</param>
/// <returns>The amount of the specified ItemIdentifier.</returns>
public int GetItemIdentifierAmount(IItemIdentifier itemIdentifier) { if (itemIdentifier == null) { return 0; } return GetItemIdentifierAmountInternal(itemIdentifier); }
.
GetItemIdentifierAmount return 0


Безымянный.png
 
I figured out, you need to add Ammo Collection Names to the list. Although it seemed to me that it used to work without this option.
 
Last edited:
I'm glad you found the solution. It's possible this is one of the changes we made in the recent updates to allow multiple ItemCollections to be used as ammo collections
 
Top