Skip to content

CreateZone

A box zone between two corners.

The corners may be given in any order. nil when the 4096 ids are used up.

CreateZone(x1, y1, z1, x2, y2, z2)
Parameter Type
x1 number one corner, metres
y1 number metres
z1 number metres
x2 number the opposite corner
y2 number metres
z2 number metres

number - the zone’s id; nil when none is free

local courtyard = CreateZone(1260, 1070, 20, 1300, 1110, 40)

CreateCircleZone · DestroyZone · OnPlayerEnterZone · GetZoneInfo · the Zones group of the index