mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
499 B
Plaintext
27 lines
499 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
*
|
|
*
|
|
* Arguments:
|
|
* 0: device ID <STRING>
|
|
* 1: group ID <STRING>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_deviceID", "_groupID"];
|
|
|
|
private ["_data"];
|
|
_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 EFUNC(common,globalEvent);
|