LuaEvents.wiki
changeset 1822 fc9a202d27ba
parent 1795 12e1aa6294d7
child 1839 198bfa280caa
--- a/LuaEvents.wiki	Wed Apr 17 19:26:51 2019 +0100
+++ b/LuaEvents.wiki	Wed Apr 17 19:27:57 2019 +0100
@@ -10,9 +10,10 @@
 == 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].
+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].
+
+If you want to add teams or hogs manually, you have to do it here. If you want to draw your own map using `AddPoint` and `FlushPoints`, you have to do this within this function as well.
 
 === <tt>onGameStart()</tt> ===
 This function is called when the first round starts.