mkafrin/PolyZone

HOW To print name of the zone

SYNO-SY opened this issue · 2 comments

Is there any way to print zone name if isInsidePoint?

@syno-dev The zone name is just a property on the zone.

local zone = CircleZone:Create(vector3(0.0, 0.0, 0.0), 3.0, {
    name="circle_zone",
    debugPoly=false,
})
print(zone.name) -- Name is stored on the zone

thank you yeah its working... i was getting nil its because i did not give name in the config