GetMapTile¶
Read map tile from current game state.
GetMapTile(position)
Inputs: position is a map { x, y } position. Adjacent numeric x, y arguments also work; fractional coordinates are rounded down.
Output: MapTile, or nil.
Errors and unavailable states: Wrong argument types can raise a Lua argument error. Unavailable game data or an invalid target returns nil as described in Output.
See Game data and world for related calls and usage notes.