/* * Author: Glowbal * Use magazine * * Arguments: * 0: unit * 1: magazine * * Return Value: * if magazine has been used. * * Example: * [bob, "magazine"] call ace_common_fnc_useMagazine * * Public: Yes */ #include "script_component.hpp" params ["_unit", "_magazine", ["_vehicleUsage", false]]; private _return = false; if !(_vehicleUsage) then { if (_magazine != "") then { _unit removeMagazine _magazine; _return = true; }; [format ["fnc_useMagazine: %1 | %2", _this, _return]] call FUNC(debug); //} else { // @todo implement shared magazine functionality }; _return