# HG changeset patch # User Wuzzy # Date 1555502085 -3600 # Node ID 66b51b8ba202058221e918f47495ccf9246be75f # Parent b3ce3b8bc36d65a734a5e2a84a52ce07a3a60d43 LuaEvents: Add TOC diff -r b3ce3b8bc36d -r 66b51b8ba202 LuaEvents.wiki --- 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. + + == onGameInit() == 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.