i wanna detect the player's city
i have 2 ideas
one is to choose one x,y in each city and check the player x,y and detect the nearest city
the other one is to create a minx, maxx, miny, maxy and detect is player in them or not, and if its not in x,y range then decide to check the nearest one
g
gray-grass-64213
02/18/2023, 1:47 PM
the second one seems more logical, to me, since a city isn't just one point, but an entire area....
a
ancient-dusk-99626
02/18/2023, 1:49 PM
is the a better way?
g
gray-grass-64213
02/18/2023, 1:51 PM
I think this is the best way, although not the simplest one...
It's the most accurate
c
colossal-hair-59186
02/18/2023, 1:58 PM
You can use GangZoneCreate for this. Used it for a streets project a few years ago
colossal-hair-59186
02/18/2023, 1:59 PM
It won't show the colour of the zone in the HUD unless you you use the function