steam_get_stat_avg_rate

Get the value of an average statistic.

Syntax:

GML Code Example

steam_get_stat_avg_rate(stat_name);


Argument Description
stat_name The name of the statistic to get (a string).


Returns: Real


Description

With this function you can get the value of a specific average statistic. The statistic should have been previously defined on the Steamworks control panel accounts page for your game and the string that is passed to the function should match that used as the API Name on the control panel.


Example:

GML Code Example

var avg = steam_get_stat_avg_rate("PointsPerHour");
 draw_text(8, 8, "PPH = " + string(avg);
 

The above code gets the current value for the average statistic "PointsPerHour" and draws it on the screen.





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