Hey,
i am stackable item in my player inventory and i want to consume it once.
is it possible to consume it with the itemID and not with the instance?
why instanceID is used here?
thanks
Hey,
i am stackable item in my player inventory and i want to consume it once.
is it possible to consume it with the itemID and not with the instance?
why instanceID is used here?
thanks
InstanceId is required for the ConsumeItem method. InstanceId is the identifier for the item in a player's inventory. ItemId is the identifier for the item in the catalog. By requiring instanceId in this case, we're being consistent about how we treat the different identifiers. You're referring to an instance in a player's inventory, so it makes sense to use instanceId. Yes, we could in theory do a lookup, but we'd pay a performance price.
The most common way is through a call to GetUserInventory. It returns the player's inventory with all associated itemInstanceIds.
2 People are following this question.