mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
432 B
Plaintext
25 lines
432 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Glowbal
|
|
*
|
|
*
|
|
* Arguments:
|
|
* 0: device ID <STRING>
|
|
* 1: new owner <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
|
|
params ["_deviceID", "_newOwner"];
|
|
|
|
private _data = [_deviceID] call FUNC(getDeviceData);
|
|
|
|
if (count _data < 6) exitwith {};
|
|
if (_newOwner isEqualTo (_data select 5)) exitwith {};
|
|
|
|
["bft_updateDeviceOwner", [_deviceID, _newOwner]] call CBA_fnc_globalEvent;
|