Arma 3 Scripting

Function in Diagnostic

BIS_fnc_configViewer

Also available as Markdown and JSON, or read the original wiki page.

Description

Opens the Splendid™ Config Viewer.

Syntax

[parent, cfg, showOk, onSelect, onAdd, header] call BIS_fnc_configViewer

Parameters:

Returns: Array

Examples

Example 1

call BIS_fnc_configViewer;

Example 2

private _return = [
    nil,
    configFile >> "CfgWeapons",
    true,
    nil,
    {
        params ["_cfg"];
        if (
            getNumber(_cfg >> "scope") == 2 &&
            { // Layzy evaluation
                getNumber(_cfg >> "type") in [1,2,4] && // primary, secondary, handgun weapons
                { !isClass (_cfg >> "LinkedItems") or getText(_cfg >> "baseWeapon") == configName _cfg } // only base weapons, no accessories
            }
        ) exitWith {
            [_cfg] call BIS_fnc_displayName; // add the weapon with its displayname
        };
        "" // don't add
    },
    "Select Weapon"
] call BIS_fnc_configViewer;
_cfgSelected = _return param [0, configNull];
systemChat str [configName _cfgSelected, _cfgSelected];

See also

BIS_fnc_animViewer · BIS_fnc_help