ACE3/addons/bft/functions/fnc_isDeviceOwned.sqf
2016-09-03 09:35:37 +02:00

23 lines
320 B
Plaintext

/*
* 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)