mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
31 lines
484 B
Plaintext
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);
|
|
};
|