LuaEvents: Update onGameInit info
authorWuzzy
Wed, 17 Apr 2019 19:27:57 +0100
changeset 1822 fc9a202d27ba
parent 1821 e514ad7c39a3
child 1823 7eee057240b4
LuaEvents: Update onGameInit info
LuaEvents.wiki
--- 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.