ACE3/addons/bft/functions/fnc_isDeviceOwned.sqf

23 lines
320 B
Plaintext
Raw Normal View History

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