Arma 3 Scripting

Function in Configs

BIS_fnc_getCfgData

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

Description

Smart-return number, text or array value from config.

Syntax

Syntax 1

config call BIS_fnc_getCfgData

Parameters:

Returns: Array, String, Number or nil

Syntax 2

array call BIS_fnc_getCfgData

Parameters:

Returns: Array, String, Number or nil

Examples

Example 1

private _value = (configFile >> "BulletBubbles" >> "BulletBubbles1" >> "type") call BIS_fnc_getCfgData;

Example 2

private _value = (missionConfigFile >> "Hubs" >> "A1" >> "QuickStart" >> "trigger") call BIS_fnc_getCfgData;

See also

BIS_fnc_getCfgDataArray · BIS_fnc_getCfgDataObject · BIS_fnc_getCfgDataPool · BIS_fnc_getCfgDataBool