---
name: "BIS_fnc_getCfgDataObject"
type: function
status: ok
groups: ["Configs"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_getCfgDataObject
revid: 309768
updated: 2022-05-05T12:09:49Z
---

# BIS_fnc_getCfgDataObject

*Function · Configs · Arma 3 v1.00*

## Description

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

## Syntax

*syntax inferred from the function header*

```sqf
_this call BIS_fnc_getCfgDataObject
```

**Parameters:**

- `_this` — CFG
  _this: ARRAY of STRINGS - missionConfigFile classes and an attribute.

**Returns:** OBJECT or OBJNULL

## Examples

### Example 1

```sqf
1st way of calling:
```

### Example 2

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

### Example 3

```sqf
2nd way of calling:
```

### Example 4

```sqf
_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.

```sqf
/*
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
*/
```

<sub>Source: [BI Community Wiki — BIS fnc getCfgDataObject](https://community.bistudio.com/wiki/BIS_fnc_getCfgDataObject) (revision 309768).</sub>
