GetArea
An area as it stands.
Syntax
Section titled “Syntax”GetArea(name)| Parameter | Type | |
|---|---|---|
name |
string | the area |
Returns
Section titled “Returns”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
Example
Section titled “Example”local a = GetArea("Plot 7")if a then Log(a.name .. ": a " .. a.shape .. ", owned by " .. tostring(a.props.owner)) endSee also
Section titled “See also”GetAreas · GetAreaProperty · the The map’s areas group of the index
