2016-04-06 16:04:51 +00:00
|
|
|
/*
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
|
2016-04-13 20:28:31 +00:00
|
|
|
private ["_ok","_group"];
|
2016-04-06 16:04:51 +00:00
|
|
|
_ok = false;
|
|
|
|
_group = param [0, grpNull, [grpNull]];
|
|
|
|
if not isNull _group then
|
|
|
|
{
|
2016-04-18 17:31:28 +00:00
|
|
|
(uiNamespace getVariable ["VEMFrAIgroups",[]]) pushBack _group;
|
|
|
|
{
|
|
|
|
_x setVariable ["VEMFrAIunit", 1, true];
|
|
|
|
} forEach (units _group);
|
2016-04-06 16:04:51 +00:00
|
|
|
_ok = true
|
|
|
|
};
|
2016-04-13 20:28:31 +00:00
|
|
|
|
2016-04-06 16:04:51 +00:00
|
|
|
_ok
|