Page 1 of 1

Map coord to unit coords and back

Posted: 28 Sep 2009, 13:14
by johanhagelback
Hi,

This might have been answered before but I couldnt find any good info about it.

The map size on my test map is 512x512. The coordinate for my units are something like (x=3660.1147, z=3502.4683).

How do I convert coordinates from units to map and back?

Cheers,
Johan

Re: Map coord to unit coords and back

Posted: 28 Sep 2009, 14:01
by imbaczek
multiply or divide by 8, depending on what you want where.

Re: Map coord to unit coords and back

Posted: 28 Sep 2009, 20:11
by Error323
Relation between all the maps is:

slopemap 1:2 heightmap 1:8 realmap

GetMapWidth() and GetMapHeight() give map dimensions in heightmap resolution.