ACE3/addons/core/functions/fnc_getDisplayConfigName.sqf
2015-01-12 05:14:15 -06:00

16 lines
378 B
Plaintext

// by commy2
#include "\z\ace\addons\core\script_component.hpp"
private ["_configName", "_index"];
_configName = "";
for "_index" from 0 to (count configFile - 1) do {
_config = configFile select _index;
if (isClass _config && {isNumber (_config >> "idd")} && {getNumber (_config >> "idd") == _this}) exitWith {
_configName = configName _config;
};
};
_configName