Skip to content

GetZoneInfo

A zone’s shape.

GetZoneInfo(id)
Parameter Type
id number the zone

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

local z = GetZoneInfo(arena)
Log(string.format("arena at %.1f %.1f, radius %.1f", z.x, z.y, z.radius))

CreateZone · CreateCircleZone · IsPointInZone · the Zones group of the index