Dr_Eyeball
Jun 9 2009, 09:55
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:
private ['_yOffset'];
_yOffset = switch toLower(worldName) do
{
case 'chernarus': {15360};
case 'utes': {5120};
default {15360};
};
_xgrid = floor (_x / 100);
_ygrid = floor ((_yOffset - _y) / 100);
Ref File: ".\ArmA 2\AddOns\modules\Functions\misc\fn_PosToGrid.sqf"
Let us know if you find a fast automatic method.
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:
private ['_yOffset'];
_yOffset = switch toLower(worldName) do
{
case 'chernarus': {15360};
case 'utes': {5120};
default {15360};
};
_xgrid = floor (_x / 100);
_ygrid = floor ((_yOffset - _y) / 100);
Ref File: ".\ArmA 2\AddOns\modules\Functions\misc\fn_PosToGrid.sqf"
Let us know if you find a fast automatic method.