-
Notifications
You must be signed in to change notification settings - Fork 113
Tiles map commands
Command format:
ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
-
ReturnType - the return value of the function (void - the function returns nothing);
-
NameSpace - the scope of the function;
-
name - the name of the function;
-
requiredParameters - required parameters;
-
optionalParameters - optional parameters, the default value is indicated after the = sign
tileFlags can take the following values:
-
'mine' - will search only cave tiles;
-
'tree' - will search only trees;
-
'water' - will search only water tiles;
-
'land' - will include terrain tiles in the search;
-
'any' - searches for any static tiles;
tileFlags can be combined from regular tile indices: tileFlags = '0x0654|0x03FD|0x78AE';
Get a list of tiles in the specified coordinates.
If the value of startZ or endZ is 255, this parameter is ignored.
Result: A list of TileObjects.
Get a list of tiles in the specified range of coordinates (rectangle).
Result: A list of TileObjects.
Get a list of tiles in the specified coordinate range (rectangle) with a filter by Z coordinate.
If the value of startZ or endZ is 255, this parameter is ignored.
Result: A list of TileObjects.