ACE3/addons/core/functions/fnc_getChildren.sqf

12 lines
316 B
Plaintext

// by commy2
#include "script_component.hpp"
private ["_name", "_cfgClass", "_classes"];
_name = _this select 0;
_cfgClass = _this select 1;
_classes = format ["configName inheritsFrom _x == '%1'", _name] configClasses (configFile >> _cfgClass);
_classes = [_classes, {configName _this}] call FUNC(map);
_classes