mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
482 B
Plaintext
26 lines
482 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Glowbal
|
|
*
|
|
*
|
|
* Arguments:
|
|
* 0: device ID <STRING>
|
|
* 1: group ID <STRING>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
|
|
params ["_deviceID", "_groupID"];
|
|
|
|
private _data = [_deviceID] call FUNC(getDeviceData);
|
|
|
|
if (count _data < 3) exitwith {};
|
|
if (count (_data select 2) < 4) exitwith {};
|
|
if (_groupID isEqualTo (_data select 2) select 3) exitwith {};
|
|
|
|
["bft_updateDeviceGroup", [_deviceID, _groupID]] call CBA_fnc_globalEvent;
|