Skip to content

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.

SetArea(name, shape, opts)
Parameter Type
name string the area
shape string its shape
opts table the shape’s numbers and the options

boolean - true; false and the reason

-- the market grows on fair days
SetArea("Market", "cylinder", {x = 1290, y = 1095, radius = 60, zmin = 20, zmax = 60, label = "The fair", public = true})

CreateArea · GetArea · the The map’s areas group of the index