mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
476 B
Plaintext
26 lines
476 B
Plaintext
|
/*
|
||
|
* Author: Jonpas
|
||
|
* Finds set element by element name and returns index, source of the set element and state.
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Element Name <STRING>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* None
|
||
|
*
|
||
|
* Example:
|
||
|
* ["ace_ui_ammoCount"] call ace_ui_fnc_findSetElement
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
#include "script_component.hpp"
|
||
|
|
||
|
params ["_element"];
|
||
|
|
||
|
{
|
||
|
if (_element in _x) exitWith {
|
||
|
[_forEachIndex, _x select 0, _x select 2]
|
||
|
};
|
||
|
[-1, "", false]
|
||
|
} forEach GVAR(elementsSet);
|