mkafrin / PolyZone

PolyZone is a FiveM mod to define zones of different shapes and test whether a point is inside or outside of the zone
MIT License
199 stars 193 forks source link

[QUESTION] Is there any way to edit inside the zone? #82

Closed hoaaiww closed 1 year ago

hoaaiww commented 1 year ago

So I have a big zone for a lawn mower script and I would like to cut out the dirt and gravel areas. Is there any way to cut little zones out?

mkafrin commented 1 year ago

You could do this in two ways.

  1. Use a PolyZone and just set the points to go around the inner zones (this could get complicated and be hard to upkeep if those inner zones change)
  2. Have inner and outer zones. Then both can be checked to determine what to do. Aka "if inside outer zone, but not inside inner zones, do x"

Option 2 would probably be simpler to maintain and handle.