Location table - originalfoo/Prison-Architect-API GitHub Wiki

##Overview

Defines map co-ordinates of an object, etc.

##Syntax

The value of applicable properties will be a table with two fields, .x and .y:

{ x = <x>, y = <y> }

Where <x> and <y> are numbers specifying the map co-ordinates.

##Example

local x, y = this.Pos.x, this.Pos.y

##Notes

The default map is 100 tiles wide by 80 tiles high:

MapSize

The left-lane of the road has x of 90, the right-lane is 93.

##See Also

⚠️ **GitHub.com Fallback** ⚠️