LuaStats.wiki
changeset 1764 33ed53a6f370
parent 1760 a9e06d2265f0
child 1842 f33a4823d9c9
equal deleted inserted replaced
1763:3fa6a8bbf260 1764:33ed53a6f370
    89 == <tt>!SendHealthStatsOff()</tt> ==
    89 == <tt>!SendHealthStatsOff()</tt> ==
    90 Prevents the engine of sending health stats to the frontend. 
    90 Prevents the engine of sending health stats to the frontend. 
    91 
    91 
    92 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.
    92 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.
    93 f
    93 f
    94 == <tt>!SendAchievementsStatsOff()</tt> (0.9.23) ==
    94 == <tt>!SendAchievementsStatsOff()</tt> ==
    95 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()`.
    95 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()`.
    96 
    96 
    97 == <tt>!SendRankingStatsOff()</tt> (0.9.23) ==
    97 == <tt>!SendRankingStatsOff()</tt> ==
    98 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()`.
    98 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()`.
    99 
    99 
   100 == <tt>!SendGameResultOff()</tt> (0.9.23) ==
   100 == <tt>!SendGameResultOff()</tt> ==
   101 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()`.
   101 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()`.
   102 
   102 
   103 == <tt>!GetTeamStats(teamname)</tt> (0.9.23) ==
   103 == <tt>!GetTeamStats(teamname)</tt> ==
   104 Returns a table of internal stats of a team. This table has the following fields:
   104 Returns a table of internal stats of a team. This table has the following fields:
   105 
   105 
   106  * `Kills`: Number of kills
   106  * `Kills`: Number of kills
   107  * `Suicides`: Number of suicides (not yet working)
   107  * `Suicides`: Number of suicides (not yet working)
   108  * `AIKills`: Number of AI kills
   108  * `AIKills`: Number of AI kills