Zones
Faster alternative to PolyZone utilising glm.polygon.
lib.zones.poly
data:
table
points:
vector3[]
All z values must match
thickness?:
number
Default:
4
onEnter:
function
(self:table
)onExit:
function
(self:table
)inside:
function
(self:table
)debug?:
boolean
lib.zones.box
data:
table
coords:
vector3
size?:
vector3
Default:
vec3(4, 4, 4)
rotation?:
number
Angle in degrees
onEnter:
function
(self:table
)onExit:
function
(self:table
)inside:
function
(self:table
)debug?:
boolean
lib.zones.sphere
data:
table
coords:
vector3
radius?:
number
Default:
2
onEnter:
function
(self:table
)onExit:
function
(self:table
)inside:
function
(self:table
)debug?:
boolean
Usage Examples
Zones can be deleted by using the remove method.
Zone creation script
Similarly to PolyZone, there is a zone creation script included.
To use it use the /zone
with poly
, box
or sphere
as args.
Available controls will be displayed on the right side.
Once saved you will find the created zone details in created_zones.lua within ox_lib
Last updated