#include "script_component.hpp" /* * Author: Glowbal * Check if all items are present between the patient and the medic. * * Arguments: * 0: Medic * 1: Patient * 2: Items > * * Return Value: * Has the items * * Example: * [bob, patient, ["bandage", "morphine"]] call ace_medical_fnc_hasItems * * Public: Yes */ params ["_medic", "_patient", "_items"]; private _return = true; { // if (_x isEqualType [] && {({[_medic, _patient, _x] call FUNC(hasItem)}count _x == 0)}) exitwith { _return = false; }; if (_x isEqualType "" && {!([_medic, _patient, _x] call FUNC(hasItem))}) exitwith { _return = false; }; }foreach _items; _return