- Joined
- Jul 14, 2011
- Messages
- 3,213
Hi! Thanks for reading.
I want to make a region grid in the whole map on MapInit being able to edit the grid size. My goal is to make a triggered mapview system where the player gets vision of a portion of the map once a unit goes inside that region, and not by Wc3 default Unit Vision Sight, similar to some SNES RPG maps.
My first though was getting the bj_playableMapArea reals (maxX, maxY, minX, minY) and divide them by gridsize to have my rect gridsize (so if divided by 100, I can fill the map with 100 regions of the same size), but then i don't know how to make the rects to fill the map.
I guess after that i could create a grid of points, and then create region centered at those points
I want to make a region grid in the whole map on MapInit being able to edit the grid size. My goal is to make a triggered mapview system where the player gets vision of a portion of the map once a unit goes inside that region, and not by Wc3 default Unit Vision Sight, similar to some SNES RPG maps.
My first though was getting the bj_playableMapArea reals (maxX, maxY, minX, minY) and divide them by gridsize to have my rect gridsize (so if divided by 100, I can fill the map with 100 regions of the same size), but then i don't know how to make the rects to fill the map.
I guess after that i could create a grid of points, and then create region centered at those points
