02.02.2018, 23:51
Hi
I'm looking for some code to basically split a square into lots of equal sized squares, rectangles would also work.
I need this so I can quickly and rapidly make a set of gangzones.
If I can figure out how to make a function, input the max x & y, and minimum x & y, and it out puts a bunch of co-ords for the max x & y and min x & y of smaller squares, for the gangzones.
Anyone any idea how I would achieve this sort of math in Pawn?
- Cheers
I'm looking for some code to basically split a square into lots of equal sized squares, rectangles would also work.
I need this so I can quickly and rapidly make a set of gangzones.
If I can figure out how to make a function, input the max x & y, and minimum x & y, and it out puts a bunch of co-ords for the max x & y and min x & y of smaller squares, for the gangzones.
Anyone any idea how I would achieve this sort of math in Pawn?
- Cheers