mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ed15d99915
* Display disabled message when basic config set by mission showHud * Set showHud on RscDiary unload - fix #3907, Remove redundant force parameter from basic setElements * Log forced source to RPT * Add source to scripted element setter
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);
|