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.
|stat_name||The name of the statistic to get (a string).|
var avg =
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.