LuaEvents.wiki
changeset 1949 36b81d9d8a65
parent 1948 e62b8461ec01
child 1972 71f061ea3941
--- a/LuaEvents.wiki	Tue Jul 16 21:14:31 2019 +0100
+++ b/LuaEvents.wiki	Tue Jul 16 21:15:01 2019 +0100
@@ -9,7 +9,7 @@
 <wiki:toc max_depth="3" />
 
 == Initialization ==
-
+=== <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. For a list of game variables that can be set here, see [LuaGlobals#Game_variables].