# HG changeset patch # User Wuzzy # Date 1441850524 0 # Node ID c6d08e0742230a48196b7f97992bd82ae2d03531 # Parent 9a690b99f3e9951e98afb2489f6a7c7e653e961a Add GameFlags variable for onGameInit diff -r 9a690b99f3e9 -r c6d08e074223 LuaAPI.wiki --- a/LuaAPI.wiki Thu Sep 10 01:58:46 2015 +0000 +++ b/LuaAPI.wiki Thu Sep 10 02:02:04 2015 +0000 @@ -134,7 +134,7 @@ === <tt>onGameInit()</tt> === This function is called before the game loads its resources. One can modify various game variables here: * <tt>Seed = 0</tt> - sets the seed of the random number generator - * <tt>!EnableGameFlags(gfSolidLand, gfArtillery)</tt> - sets the !GameFlags (just 2 of them in this example), see above for the available flags/ + * <tt>!GameFlags</tt> - all !GameFlags combined as a bitmask. See [#GameFlags_functions] for easier manipulation of !GameFlags * <tt>Ready = 5000</tt> - the ready timer at the start of the round (in milliseconds) * <tt>Delay = 0</tt> - delay between each round in ms * <tt>!GetAwayTime = 100</tt> set the retreat time in percent