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