LuaAPI: Warning about vars in onPreviewInit
authorWuzzy
Mon, 03 Sep 2018 18:54:06 +0100
changeset 1531 9a4773488054
parent 1530 288bee4b94d5
child 1532 94030dc69d1e
LuaAPI: Warning about vars in onPreviewInit
LuaAPI.wiki
--- a/LuaAPI.wiki	Mon Sep 03 04:07:58 2018 +0100
+++ b/LuaAPI.wiki	Mon Sep 03 18:54:06 2018 +0100
@@ -202,6 +202,8 @@
 
 It is useful for scripts which create their own maps (see `AddPoint` and `FlushPoints`). If you create a map in this function, a preview will be generated from this map and is exposed to the frontend.
 
+Note the variables `LeftX`, `RightX`, `TopY`, `LAND_WIDTH` and `LAND_HEIGHT` are *not* yet available at this stage!
+
 === <tt>onParameters()</tt> ===
 This function is called when the script parameters (as specified in the game scheme) become available. The script parameter string is stored in the global variable `ScriptParam`.