Facepunch.Steamworks Wiki

Steamworks.SteamUserStats.AddStat

Syntax

static bool AddStat( string name, int amount = 1 )

Description

Adds this amount to the named stat. Internally this calls Get() and adds to that value. Steam doesn't provide a mechanism for atomically increasing stats like this, this functionality is added here as a convenience.

Arguments

string name
int amount 1

Returns

bool

Syntax

static bool AddStat( string name, float amount = 1 )

Description

Adds this amount to the named stat. Internally this calls Get() and adds to that value. Steam doesn't provide a mechanism for atomically increasing stats like this, this functionality is added here as a convenience.

Arguments

string name
float amount 1

Returns

bool