---
name: "BIS_fnc_getCfgDataPool"
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_getCfgDataPool
revid: 309841
updated: 2022-05-05T12:09:52Z
---

# BIS_fnc_getCfgDataPool

*Function · Configs · Arma 3 v1.00*

## Description

Get array of attribute values out of the parent config class. Attributes need to be in this format: "_n", where n is an index number (starting from 0). If any discrepancy in indexing is detected, loading will stop and only the correctly indexed values will be returned. Max. index supported is 99. If more then 9 attributes used, 0-9 need to use leading zeroes.

CFG example:

class Timeline {
    class StageA
    {
        _0[] = {2035,7,7,04,30};
        _1[] = {2035,7,7,06,15};
        _2[] = {2035,7,7,18,35};
        _3[] = {2035,7,8,09,05};
        _4[] = {2035,7,8,13,25};
        _5[] = {2035,7,8,17,10};
        _6[] = {2035,7,8,21,40};
        _7[] = {2035,7,9,19,55};
    };
};

## Syntax

*syntax inferred from the function header*

```sqf
_this call BIS_fnc_getCfgDataPool
```

**Parameters:**

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

**Returns:** ARRAY or nil, if parent class is not found

## Examples

### Example 1

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

### Example 2

```sqf
_array = (configfile >> "BulletBubbles" >> "BulletBubbles1") call BIS_fnc_getCfgData;
_array = (missionconfigfile >> "Timeline" >> "StageA") call BIS_fnc_getCfgData;
```

### Example 3

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

### Example 4

```sqf
_array = ["Timeline","StageA"] call BIS_fnc_getCfgData;
```

## 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 array of attribute values out of the parent config class.
 Attributes need to be in this format: "_n", where n is an index number (starting from 0).
 If any discrepancy in indexing is detected, loading will stop and only the correctly indexed values will be returned.
 Max. index supported is 99.
 If more then 9 attributes used, 0-9 need to use leading zeroes.

CFG example:

class Timeline
{
    class StageA
    {
        _0[] = {2035,7,7,04,30};
        _1[] = {2035,7,7,06,15};
        _2[] = {2035,7,7,18,35};
        _3[] = {2035,7,8,09,05};
        _4[] = {2035,7,8,13,25};
        _5[] = {2035,7,8,17,10};
        _6[] = {2035,7,8,21,40};
        _7[] = {2035,7,9,19,55};
    };
};

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.

Example:

 1st way of calling:

    _array = (configfile >> "BulletBubbles" >> "BulletBubbles1") call BIS_fnc_getCfgData;
    _array = (missionconfigfile >> "Timeline" >> "StageA") call BIS_fnc_getCfgData;

 2nd way of calling:

    _array = ["Timeline","StageA"] call BIS_fnc_getCfgData;

Returns:
    ARRAY or nil, if parent class is not found
*/
```

<sub>Source: [BI Community Wiki — BIS fnc getCfgDataPool](https://community.bistudio.com/wiki/BIS_fnc_getCfgDataPool) (revision 309841).</sub>
