CreateCircleZone
A circular zone around a point - a cylinder of any height, or of a band.
Without zMin and zMax the height does not matter; with zMin < zMax only that band counts.
Syntax
Section titled “Syntax”CreateCircleZone(x, y, radius [, zMin, zMax])| Parameter | Type | |
|---|---|---|
x |
number | the centre, metres |
y |
number | metres |
radius |
number | metres |
zMin |
number | the bottom of the band (optional) |
zMax |
number | the top of the band; without a band any height counts (optional) |
Returns
Section titled “Returns”number - the zone’s id; nil when none is free
Example
Section titled “Example”local spawnX, spawnY = GetDefaultSpawn()local spawnZone = CreateCircleZone(spawnX, spawnY, 12)See also
Section titled “See also”CreateZone · IsPlayerInZone · the Zones group of the index
