# HG changeset patch # User Wuzzy # Date 1535997246 -3600 # Node ID 9a4773488054051b54a3cca7e24b66cb0820f789 # Parent 288bee4b94d5b6f44f24ef019206cb285c30d973 LuaAPI: Warning about vars in onPreviewInit diff -r 288bee4b94d5 -r 9a4773488054 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! + === onParameters() === 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`.