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

Page Links


Special Pages


Wikis

?

Render Time: 64ms

DB GetPage 49
Generate Html 0
SaveChanges (1) 11
Render Body 0
Render Sidebar 1