LuaEvents.wiki
changeset 1756 66b51b8ba202
parent 1753 ea373c205918
child 1768 43762534f5ab
--- a/LuaEvents.wiki	Wed Apr 17 12:54:04 2019 +0100
+++ b/LuaEvents.wiki	Wed Apr 17 12:54:45 2019 +0100
@@ -5,6 +5,8 @@
 
 This page is a list of all supported event handlers in Hedgewars.
 
+<wiki:toc max_depth="2" />
+
 == <tt>onGameInit()</tt> ==
 This function is called before the game loads its resources. One can read and modify various [LuaGlobals#Game_variables game variables] here. These variables will become globally available after `onGameInit` has been invoked, but changing them has only an effect in `onGameInit`.
 Most game variables are optional, but for missions, `Theme` must be set by the scripter if you want to use a random map, rather than an image map. All other variables do not need to be set by the scripter and have default values.