LuaAPI.wiki
changeset 1040 291ce8641578
parent 1039 e312e2616b75
child 1041 faa8819c9a9b
--- a/LuaAPI.wiki	Tue Sep 26 14:14:08 2017 +0100
+++ b/LuaAPI.wiki	Tue Sep 26 15:16:46 2017 +0100
@@ -1319,6 +1319,16 @@
 === <tt>!SendGameResultOff()</tt> (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()`.
 
+=== <tt>!GetTeamStats(teamname)</tt> (0.9.23) ===
+Returns a table of internal stats of a team. This table has the following fields:
+
+* `Kills`: Number of kills
+* `Suicides`: Number of suicides (kamikaze, piano strikes)
+* `AIKills`: Number of AI kills
+* `TeamKills`: Number of defeated teams
+* `TurnSkips`: Number of skipped turns
+* `TeamDamage`
+
 == Math Functions ==
 
 === <tt>div(dividend, divisor)</tt> ===