GetZoneInfo
A zone’s shape.
Syntax
Section titled “Syntax”GetZoneInfo(id)| Parameter | Type | |
|---|---|---|
id |
number | the zone |
Returns
Section titled “Returns”table - {circle=, minX=, minY=, minZ=, maxX=, maxY=, maxZ=, x=, y=, radius=}: circle true for a circle zone, the box’s bounds, the circle’s centre and radius (a box’s centre and half its diagonal); nil when there is no such zone
Example
Section titled “Example”local z = GetZoneInfo(arena)Log(string.format("arena at %.1f %.1f, radius %.1f", z.x, z.y, z.radius))See also
Section titled “See also”CreateZone · CreateCircleZone · IsPointInZone · the Zones group of the index
