Facepunch.Steamworks Wiki

Steamworks.SteamUserStats.AddStat

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

Special Pages


Wikis

?

Render Time: 12ms

DB GetPage 4
Generate Html 0
SaveChanges (1) 5
Render Body 0
Render Sidebar 1