# HG changeset patch # User Wuzzy # Date 1555503832 -3600 # Node ID 086bebb89963dd27347b2784ca856c79e35e9eda # Parent ea37b1f499dd2eba3c1733ccebf01ef5d581be8a LuaEvents: Edited via web interface diff -r ea37b1f499dd -r 086bebb89963 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. +=== onSuddenDeath() === +This function is called on the start of Sudden Death. + === onGameResult(winningClan) (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. -=== onSuddenDeath() === -This function is called on the start of Sudden Death. +=== onAchievementsDeclaration() === +This function is called after the stats for the stats screen (after the game) have been generated. You are supposed to call `DeclareAchievement` here. === onUsedAmmo(ammoType) === 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 == -=== onAchievementsDeclaration() === -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