Skip to content

GetArea

An area as it stands.

GetArea(name)
Parameter Type
name string the area

table - {id, name, shape, ...the shape's numbers, label, public, color, nav, trespass, rain, layer, persist, by, revision, props} (props: the mode’s values on it; by: the admin who last changed it, "" for the mode; trespass and rain are nil when the area sets none); nil when there is none

local a = GetArea("Plot 7")
if a then Log(a.name .. ": a " .. a.shape .. ", owned by " .. tostring(a.props.owner)) end

GetAreas · GetAreaProperty · the The map’s areas group of the index