Zone Options Formatting

When setting up a target zone, you will need to provide the necessary information to create a PolyZone, this resource requires PolyZone to work:

Example Circle Zone Options

{
    name = 'debug_zone_circle', -- the name of the zone
    center = vector3(0.0, 0.0, 0.0), -- the center of the circle zone
    radius = 1.0, -- the size of the zone
    debugPoly = true, -- if the zone should be visible
    useZ = true, -- if the circle should be spherical 
}

Example Box Zone Options

{
    name = 'debug_box_zone', -- the name of the zone
    center = vector3(0.0, 0.0, 0.0),  -- the center of the box zone
    width = 1.0, -- the width of the box zone
    length = 1.0, -- the length of the box zone
    debugPoly = true, -- if the zone should be visible
}

Example Poly Zone Options

{
    name = 'debug_poly_zone', -- the name of the zone
    points = { -- the points of the poly zone
        vector2(0.0, 0.0),
        vector2(0.0, 0.0),
        vector2(0.0, 0.0),
    },
    debugPoly = true, -- if the zone should be visible
}

Last updated