GetMapCell

Information about Map (Land) cell, including its tile and Z.

Pascal Syntax:

function GetMapCell(X,Y : Word; WorldNum : Byte) : TMapCell;

TMapCell = record
  Tile : Word;
  Z : ShortInt;
end;

Pascal Example:

   for ix := (GetX(self) - 2) to (GetX(self) + 2) do
      for iy := (GetY(self) - 2) to (GetY(self) + 2) do
      begin
        T := 0;
        X := ix;
        Y := iy;
        Z := GetZ(self);
        MapCell := GetMapCell(ix, iy, WorldNum);
        if (MapCell.Tile = Mountain_Tile) and (abs(Z - MapCell.Z) < 15) then
        begin
          T := MapCell.Tile;
          Z := MapCell.Z;
          WaitTargetTile(T, X, Y, Z);
          UseObject(ShovelID);
        end;
      end;

Python Syntax:

def GetCell(X, Y, WorldNum): --> dict