Arma 3 Scripting

BIS_fnc_strategicMapOpen

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Creates a strategic map.

Syntax

[display, pos, missions, ORBATs, markers, images, weather, night, scale, simulation, label, missionName, missionIcon] call BIS_fnc_strategicMapOpen

Parameters:

Returns: Display - rscDisplayStrategicMap

Examples

Example 1

[
    findDisplay 46,
    [2000,2000,0],
    [
        [
            [2000,2000,0],
            {systemChat format ["%1",name ((_this # 9) # 0)]},
            "1st Mission",
            "This is mission one",
            "Name of mission's player",
            "\A3\Data_F_Exp\Logos\arma3_exp_icon_ca.paa",
            1.5,
            [player]
        ],
        [
            [1000,1000,0],
            {systemChat format ["%1",name ((_this # 9) # 0)]},
            "2nd Mission",
            "This is mission two",
            "Name of mission's player",
            "\A3\Data_F_Argo\Logos\arma3_argo_logoTitle_ca.paa",
            1.5,
            [player]
        ]
    ],
    [
        [
            [3000,3000,0],
            configFile >> "CfgORBAT" >> "BIS" >> "B_1_A_1_2",
            configFile >> "CfgORBAT" >> "BIS" >> "B_1",
            [],
            10
        ]
    ],
    [
        "marker_1",
        "marker_2"
    ],
    [
        [
            "\A3\Ui_f\data\Logos\arma3_white_ca.paa",
            [0,0,0,1],
            [4000,4000,0],
            8,
            8,
            0,
            "Arma 3 Logo",
            true
        ]
    ],
    0,
    false,
    1,
    true,
    "Strategic Map Example",
    false,
    "\A3\Ui_f\data\Logos\arma3_white_ca.paa"
] call BIS_fnc_strategicMapOpen;

See also

ORBAT Viewer · BIS_fnc_ORBATAddGroupOverlay · BIS_fnc_ORBATAnimate · BIS_fnc_ORBATConfigPreview · BIS_fnc_ORBATGetGroupParams · BIS_fnc_ORBATOpen · BIS_fnc_ORBATRemoveGroupOverlay · BIS_fnc_ORBATSetGroupFade · BIS_fnc_ORBATSetGroupParams · BIS_fnc_ORBATTooltip · BIS_fnc_strategicMapMouseButtonClick · BIS_fnc_strategicMapAnimate

Community notes

ansin11

In order to use an image from the mission folder, the full path to the image has to be provided:

"images\MyImage.jpg" // Does not work
([str missionConfigFile, 0, -15] call BIS_fnc_trimString) + "images\MyImage.jpg" // works

// edit: since Arma 3 v1.96 getMissionPath is available
getMissionPath "images\MyImage.jpg" // works

Hamster2k

If you want to show the strategic map at the start of the mission by attaching it to the mission display (findDisplay 46;), the mission display needs to be initialized first. You can wait for initialization like this:

waitUntil { !isNull findDisplay 46 };

Hamster2k

If you are using 3D positions for the positions in your _missions array, be aware that the clickable size of the mission on the map gets reduced the further away from 0 your z coordinate is, becoming unclickable at some point. Use a 2D position like this to avoid that issue:

private _position = getPosWorld mission1;
_position2d = [_position select 0, _position select 1];
_missions pushBack [
    _position2d,
    { /*mission code*/ },
    "My mission",
    "My mission description"
];