LuaEvents: Edited via web interface
authorWuzzy
Wed, 17 Apr 2019 13:23:52 +0100
changeset 1774 086bebb89963
parent 1773 ea37b1f499dd
child 1775 9a5472760632
LuaEvents: Edited via web interface
LuaEvents.wiki
--- a/LuaEvents.wiki	Wed Apr 17 13:21:47 2019 +0100
+++ b/LuaEvents.wiki	Wed Apr 17 13:23:52 2019 +0100
@@ -76,11 +76,14 @@
 
 This function is useful to add custom crate drops as well.
 
+=== <tt>onSuddenDeath()</tt> ===
+This function is called on the start of Sudden Death.
+
 === <tt>onGameResult(winningClan)</tt> (0.9.25) ===
 This function calls when the game ends with a winner or in a draw. If a clan wins, `winningClan` is the clan ID of the winning clan. If the game ends in a draw, `winningClan` is set to -1.
 
-=== <tt>onSuddenDeath()</tt> ===
-This function is called on the start of Sudden Death.
+=== <tt>onAchievementsDeclaration()</tt> ===
+This function is called after the stats for the stats screen (after the game) have been generated. You are supposed to call `DeclareAchievement` here.
 
 === <tt>onUsedAmmo(ammoType)</tt> ===
 Called after a weapon has been used completely, with `ammoType` as the used ammo type.
@@ -230,8 +233,4 @@
 This is used while a special hand-drawn map is loaded. The engine is building these hand-drawn maps by reading points from the map definition. Optionally, some of these points may be “special”. These are not actually drawn on the map, but are used to store additional information for a position on the map. Special points currently need to be added manually in the map, the in-game editor is not able to add those yet.
 Now, when such a special point at the coordinates `x` and `y` with an assigned value of `flags` is added, this function is called. `flags` is a whole number between `0` and `255` inclusive.
 
-This function is used in Racer and !TechRacer to define waypoints.
-
-== Achievements ==
-=== <tt>onAchievementsDeclaration()</tt> ===
-This function is called after the stats for the stats screen (after the game) have been generated. You are supposed to call `DeclareAchievement` here.
\ No newline at end of file
+This function is used in Racer and !TechRacer to define waypoints.
\ No newline at end of file