SetArea
Gives an area a new shape, label, colour or layer.
The same shape and opts as CreateArea, whole; opts.name renames it. The area keeps its id and its values. Players who
are no longer in it leave it at the next check, those it now holds enter.
Syntax
Section titled “Syntax”SetArea(name, shape, opts)| Parameter | Type | |
|---|---|---|
name |
string | the area |
shape |
string | its shape |
opts |
table | the shape’s numbers and the options |
Returns
Section titled “Returns”boolean - true; false and the reason
Example
Section titled “Example”-- the market grows on fair daysSetArea("Market", "cylinder", {x = 1290, y = 1095, radius = 60, zmin = 20, zmax = 60, label = "The fair", public = true})See also
Section titled “See also”CreateArea · GetArea · the The map’s areas group of the index
