ACE3/addons/bft/functions/fnc_isDeviceOwned.sqf
2018-10-04 16:43:06 +02:00

22 lines
303 B
Plaintext

#include "script_component.hpp"
/*
* Author: Glowbal
*
*
* Arguments:
* 0: unit <OBJECT>
* 1: device ID <STRING>
*
* Return Value:
* owned? <BOOLEAN>
*
* Public: No
*/
params ["_unit", "_deviceID"];
private _ownedIDs = _unit getvariable [QGVAR(ownedDevices), []];
_deviceID in _ownedIDs