steam_stats_ready

Check the Steam client API to see if statistics have been set up correctly.

Syntax:

GML Code Example

steam_stats_ready();


Returns: Boolean


Description

When using the Steam API, this function can be called to check that the Steam client API has correctly initialised the statistics for your game.


Example:

GML Code Example

global.steam_api = false;
 if steam_initialised()
    {
    if steam_stats_ready() && steam_is_overlay_enabled()
       {
       global.steamapi = true;
       }
    }
 

The above code will set a global variable to true if the Steam client API is correctly initialised, along with the Steam statistics and overlay functionality, or it will set the variable to false otherwise.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here