Arma 3 Scripting

BIS_fnc_posDegToWorld

  • Arma 3 v0.50
  • First in Take On Helicopters v1.00

Function · Markdown · JSON · original wiki page

Description

Convert latitude/longtitude coordinates into game world position.

World config must contain following settings to convert the position correctly:

// Required for scripting
mapSize = 61440;    // Can differ from mapArea size, as ingame world can be resized
mapZone = 10;        // UTM zone
mapArea[] = {        // lon/lat coordinates (not in UTM to assure .kml precision)
    -122.754367782585,47.3272454065969,    // Bottom Left
    -121.930117859276,47.8753494907418    // Top Right
};

Syntax

[longitude, latitude, world] call BIS_fnc_posDegToWorld

Parameters:

Returns: Array of Numbers - format [easting, northing, zone]

Examples

Example 1

[47.63959,-122.127249] call BIS_fnc_posDegToWorld;

See also

BIS_fnc_posDegToUTM · BIS_fnc_posUTMToDeg