# HG changeset patch # User Wuzzy # Date 1493216068 -3600 # Node ID 9d49deef533c45a7fea49403737083ba21ac2e21 # Parent 84089099197fbd23cc8ea658787d86c078c35a7d LuaAPI: Add SendRankingStatsOff, SendAchievementsStatsOff, SendGameResultOff diff -r 84089099197f -r 9d49deef533c LuaAPI.wiki --- a/LuaAPI.wiki Wed Apr 26 03:17:03 2017 +0100 +++ b/LuaAPI.wiki Wed Apr 26 15:14:28 2017 +0100 @@ -1299,7 +1299,16 @@ === !SendHealthStatsOff() (0.9.20) === Prevents the engine of sending health stats to the frontend. -If any health stats haven’t been sent before this will cause the health graph to the stats page to be hidden. Use this function in the Lua scripts to produce custom graphs by calling it inside `onGameStart()` and using the `SendStat()`. +If any health stats haven’t been sent before this will cause the health graph to the stats page to be hidden. Use this function in the Lua scripts to produce custom graphs by calling it inside `onGameStart()` and using the `SendStat()` function. + +=== !SendAchievementsStatsOff() (0.9.23) === +Prevents the engine of populating the snarky comments in the “Details” section (internally known as “achievements”) of the stats screen, such as “best shot award”, etc. So you can start with a clean list when the game ends normally. This function needs to be called inside `onGameStart()`. + +=== !SendRankingStatsOff() (0.9.23) === +Prevents the engine of populating the team rankings in the stats screen, so you can start with a clean list when the game ends normally. This function needs to be called inside `onGameStart()`. + +=== !SendGameResultOff() (0.9.23) === +Prevents the engine of setting the game result text at the top of the stats screen, e.g. “Team 1 wins!” when the game ends normally. This function needs to be called inside `onGameStart()`. == Math Functions ==