#include "script_component.hpp" /* * Author: Glowbal * Remove all devices of given owner in the available devices collection * * Arguments: * 0: Device Data * * Return Value: * None * * Public: No */ params ["_deviceData"]; private _owner = D_GET_OWNER(_deviceData); for "_i" from (count GVAR(availableDevices) - 1) to 0 step -1 do { private _device = GVAR(availableDevices) select _i; private _deviceOwner = AD_GET_OWNER(_device); if (_owner == _deviceOwner) then { GVAR(availableDevices) deleteAt _i; _i = _i - 1; }; };