Arma 3 Scripting

BIS_fnc_getCfgDataObject

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Get the object defined in cfg by its name (global variable).

Syntax

syntax inferred from the function header

_this call BIS_fnc_getCfgDataObject

Parameters:

Returns: OBJECT or OBJNULL

Examples

Example 1

1st way of calling:

Example 2

_value = (missionconfigfile >> "Hubs" >> "A1" >> "QuickStart" >> "trigger") call BIS_fnc_getCfgDataObject;

Example 3

2nd way of calling:

Example 4

_value = ["Hubs","A1","QuickStart","trigger"] call BIS_fnc_getCfgDataObject;

Function header

The comment at the top of the function's file in the game; this page's description, params, syntax, returns, examples come from it.

/*
Description:
Get the object defined in cfg by its name (global variable).

Remark(s):
 Can by called 2 ways:
     1st way (general) works for any config.
     2nd way is for comfortable working with mission description.ext.

Parameter(s):
    _this: CFG
    _this: ARRAY of STRINGS - missionConfigFile classes and an attribute.

Example:

 1st way of calling:

    _value = (missionconfigfile >> "Hubs" >> "A1" >> "QuickStart" >> "trigger") call BIS_fnc_getCfgDataObject;

 2nd way of calling:

    _value = ["Hubs","A1","QuickStart","trigger"] call BIS_fnc_getCfgDataObject;

Returns:
    OBJECT or OBJNULL
*/