s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamsresults

Game Jam III

Crowned Sat 3 Oct
Winner 🏆 GAMMA ☢ TEAM
ThemeOne More Round

This jam is over. The next one will show up here.

See the results
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Live Services
Stats
chevron_left Live Services
class
Stats

Static Properties

data_objectGlobaldata_objectLocalPlayer

Static Methods

functionsFlushfunctionsFlushAndWaitAsyncfunctionsFlushAsyncfunctionsGetGlobalStatsfunctionsGetLocalPlayerStatsfunctionsGetPlayerStatsfunctionsIncrementfunctionsSetValue
Stats
Allows access to stats for the current game. Stats are defined by the game's author and can be used to track anything from player actions to performance metrics. They are how you submit data to leaderboards.
class Sandbox.Services .
staticsealedabstractSandbox.Engine

data_object Static Properties 2

Global
GlobalStats
Get the global stats for the calling package
LocalPlayer
PlayerStats
Get the global stats for the calling package

functions Static Methods 8

Flush ()
Send any pending stats to the backend. Don't wait for confirmation of ingestiom, fire and forget.
FlushAndWaitAsync (token)
Task
Send any pending stats to the backend, will wait until they're available for query before finishing.
FlushAsync (token)
Task
Send any pending stats to the backend. Don't wait for confirmation of ingestiom, fire and forget.
GetGlobalStats (packageIdent)
GlobalStats
Get the global stats for this package
GetLocalPlayerStats (packageIdent)
PlayerStats
Get the global stats for this package
GetPlayerStats (packageIdent, steamid)
PlayerStats
Get the stats for this package
Increment (name, amount)
SetValue (name, amount, context, data)
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter