Skip to content

Commit

Permalink
Common - Updated CBA_fnc_binocularMagazine (#1555)
Browse files Browse the repository at this point in the history
* Update fnc_binocularMagazine.sqf

* Update fnc_binocularMagazine.sqf
  • Loading branch information
johnb432 committed Jun 24, 2023
1 parent 5c64f10 commit 1ec3163
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions addons/common/fnc_binocularMagazine.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,10 @@ Examples:
(end)
Author:
commy2
commy2, johnb43
---------------------------------------------------------------------------- */
SCRIPT(binocularMagazine);

params [["_unit", objNull, [objNull]]];

private _binocular = binocular _unit;
private _magazine = "";

{
if ((_x select 0) isEqualTo _binocular) exitWith {
// note: if there is no magazine, _x(4,0) will be nil
_magazine = (_x select 4) param [0, ""];
};
} forEach weaponsitems _unit;

_magazine
(binocularMagazine _unit) param [0, ""]

0 comments on commit 1ec3163

Please sign in to comment.