ACE3/addons/bft/functions/fnc_createGroup.sqf
2016-09-03 09:35:37 +02:00

31 lines
484 B
Plaintext

/*
* Author: Glowbal
*
*
* Arguments:
* 0: group ID <STRING>
* 1: data <ARRAY> ?
* 2: ?
*
* Return Value:
* None
*
* Public: No
*/
#include "script_component.hpp"
params ["_groupID"];
if (count _this < 3) exitwith {}; // What is the 3rd parameter?
private ["_found"];
_found = false;
{
if (_x select 0 == _groupID) exitwith {_found = true;};
} forEach GVAR(orbatElements);
if (!_found) then {
[QGVAR(orbatElements), _this] call FUNC(syncedArrayPushback);
};