Results 1 to 6 of 6

Thread: fn_PosToGrid.sqf - module functions

  1. #1

    fn_PosToGrid.sqf - module functions

    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:
    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);
    Ref File: ".\ArmA 2\AddOns\modules\Functions\misc\fn_PosToGrid.sqf"

    Let us know if you find a fast automatic method.

  2. #2
    Master Sergeant Serclaes's Avatar
    Join Date
    Nov 27 2005
    Location
    this town right here
    Posts
    775
    Could you post an example how you used that function? I just spent 2 hours trying to figure that out but the only return i get is "ANY" and the .rpt isn't very helpful either.

  3. #3
    The world-to-grid function in SPON Map is still universal (Absolutely any A1 or A2 map!), but it will be a while until I get it ported to A2.
    CBA: Community Base Addons for A2
    DevHeaven: development unraveled!
    SPON scripts/addons (A1) | Roller island tool (OFP -> A1)
    OFPEC: The editing center (for OFP, A1 and A2)

  4. #4
    big thumbs up @ bis for keeping this hoop for us to jump over

  5. #5
    Oh no..... This nightmare again... Why can't they just give us a builtin command? AI reports proper grids all the time.

    I'm using the SPON_Map for this. But getting simple grid readouts adds quite a lot of additional data to the mission compared to the gain.

    But anyway, hopefully all islands will follow the new system at least, no more letters.

    What is needed if someone wants the correct northing? Currently the northing is inverse.
    Regards
    Carl Gustaffa - left this game due becoming Steam Exclusive

  6. #6
    Well, yes, having SPON Map just for this one function is overkill. But then how can anyone play without it? :P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •