ACE3/addons/common/functions/fnc_getDisplayConfigName.sqf

16 lines
359 B
Plaintext
Raw Normal View History

// by commy2
2015-01-13 19:56:02 +00:00
#include "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