CreateZone
A box zone between two corners.
The corners may be given in any order. nil when the 4096 ids are used up.
Syntax
Section titled “Syntax”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 |
Returns
Section titled “Returns”number - the zone’s id; nil when none is free
Example
Section titled “Example”local courtyard = CreateZone(1260, 1070, 20, 1300, 1110, 40)See also
Section titled “See also”CreateCircleZone · DestroyZone · OnPlayerEnterZone · GetZoneInfo · the Zones group of the index
