ACE3/addons/common/functions/fnc_getDisplayConfigName.sqf

16 lines
380 B
Plaintext
Raw Normal View History

// by commy2
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-05-14 22:12:40 +00:00
private ["_configName", "_index", "_config"];
_configName = "";
for "_index" from 0 to (count configFile - 1) do {
2015-05-14 18:06:06 +00:00
_config = configFile select _index;
if (isClass _config && {isNumber (_config >> "idd")} && {getNumber (_config >> "idd") == _this}) exitWith {
_configName = configName _config;
};
};
_configName