mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
33 lines
706 B
Plaintext
33 lines
706 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: commy2
|
|
* Get display classnames from config with given idd.
|
|
*
|
|
* Arguments:
|
|
* 0: Display ID (idd) <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* Display Classnames <ARRAY>
|
|
*
|
|
* Example:
|
|
* [5] call ace_common_fnc_getDisplayConfigName
|
|
*
|
|
* Public: Yes
|
|
*
|
|
* Note: Really slow due to iteration through whole config. Meant for debugging.
|
|
*/
|
|
|
|
params ["_idd"];
|
|
|
|
private _configNames = [];
|
|
|
|
for "_index" from 0 to (count configFile - 1) do {
|
|
private _config = configFile select _index;
|
|
|
|
if (isClass _config && {isNumber (_config >> "idd")} && {getNumber (_config >> "idd") == _idd}) then {
|
|
_configNames pushBack configName _config;
|
|
};
|
|
};
|
|
|
|
_configNames
|