Facepunch.Steamworks Wiki

Steamworks.InventoryItem.ConsumeAsync

Syntax

async Task<InventoryResult> ConsumeAsync( int amount = 1 )

Description

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".

Arguments

int amount 1

Returns