The posToGrid script function only works for Chernarus.
The correct "offset" to apply for Utes is 5120. (Chernarus uses 15360.)
To add support for Utes (and future terrain addons), you can change the code to something like:
Ref File: ".\ArmA 2\AddOns\modules\Functions\misc\fn_PosToGrid.sqf"Code:private ['_yOffset']; _yOffset = switch toLower(worldName) do { case 'chernarus': {15360}; case 'utes': {5120}; default {15360}; }; _xgrid = floor (_x / 100); _ygrid = floor ((_yOffset - _y) / 100);
Let us know if you find a fast automatic method.
HOME
Reply With Quote


