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

Page Links


Special Pages


Wikis

?

Render Time: 16ms

DB GetPage 3
Generate Html 0
SaveChanges (1) 9
Render Body 0
Render Sidebar 1