mirror of
https://github.com/IT07/a3_vemf_reloaded.git
synced 2024-08-30 16:52:11 +00:00
28 lines
543 B
Plaintext
28 lines
543 B
Plaintext
/*
|
|
Author: IT07
|
|
|
|
Description:
|
|
marks given group(!) as VEMF AI which will then be used by REMOTEguard for monitor of groupOwner
|
|
|
|
Params:
|
|
_this: ARRAY
|
|
_this select 0: GROUP - group to sign as VEMF AI
|
|
|
|
Returns:
|
|
BOOL - true if OK
|
|
*/
|
|
|
|
private ["_ok","_group"];
|
|
_ok = false;
|
|
_group = param [0, grpNull, [grpNull]];
|
|
if not isNull _group then
|
|
{
|
|
(uiNamespace getVariable ["VEMFrAIgroups",[]]) pushBack _group;
|
|
{
|
|
_x setVariable ["VEMFrAIunit", 1, true];
|
|
} forEach (units _group);
|
|
_ok = true
|
|
};
|
|
|
|
_ok
|