Facepunch.Steamworks Wiki

Revision Difference

InventoryItem.ConsumeAsync#523280

<member type="method" namespace="Steamworks" parent="InventoryItem" name="ConsumeAsync" async="true"> <member category="class" type="method" namespace="Steamworks" parent="InventoryItem" name="ConsumeAsync" async="true"> <args> <arg name="amount" type="int" default="1"></arg> </args> <return type="Task<Nullable<InventoryResult>>"></return> <summary>Consumes items from a user's inventory. If the quantity of the given item goes to zero, it is permanently removed. Once an item is removed it cannot be recovered.This is not for the faint of heart - if your game implements item removal at all, a high-friction UI confirmation process is highly recommended.ConsumeItem can be restricted to certain item definitions or fully blocked via the Steamworks website to minimize support/abuse issues such as the classic "my brother borrowed my laptop and deleted all of my rare items".</summary> </member>