Page tree
Skip to end of metadata
Go to start of metadata

Introduced in



Description:Returns all members of the input class (all numbers, strings, arrays, and classes). This includes the members that are inherited from parent classes. Use the count and select commands to go through the members. In that case, you do not obtain members of the class that are inherited, you only get the members that are directly configured in that level of the class.


Syntax:config call fn_vbs_getInheritedCfg
  • config: Config-2 - Class to search within
Return Value:Array of Config-2


When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.


_config = configFile >> "CfgVehicles" >> "vbs2_iq_child_03" >> "eventHandlers";

_ret = [];
for "_i" from 0 to (count _config)-1 do
	_ret = _ret + _config select _i;

_retB = _config call fn_vbs_getInheritedCfg

//_ret is empty, because event handlers are only configured in the parent class
//_retB holds the inherited members of the class:
	configFile >> "CfgVehicles" >> "vbs2_iq_child_03" >> "eventHandlers" >> "init",
	configFile >> "CfgVehicles" >> "vbs2_iq_child_03" >> "eventHandlers" >> "getInMan",
	configFile >> "CfgVehicles" >> "vbs2_iq_child_03" >> "eventHandlers" >> "loadoutChanged"

Additional Information

See also: inheritsFrom, configParent


See the notes of the count command. By changing the example to use this function, the limitations listed in count example can be avoided:

_cfg = (configFile >> "CfgVehicles" >> "myclass") call fn_vbs_getInheritedCfg;
for _i from 0 to (count _cfg)-1 do
   _nextValue = _cfg select _i; some stuff

Note: the same results as this function can be achieved using the following command:

"true" configClasses (configFile >> "CfgVehicles" >> "myclass")

--General Barron 02:07, 3 March 2009 (CET)