Call CBA binocular functions - leave as wrapper

This commit is contained in:
jonpas 2016-05-22 16:03:41 +02:00
parent 4b121480bb
commit 38b48390b5
2 changed files with 2 additions and 25 deletions

View File

@ -17,18 +17,4 @@
ACE_DEPRECATED("ace_common_fnc_binocularMagazine","3.8.0","CBA_fnc_binocularMagazine");
params [["_unit", objNull, [objNull]]];
private _binocular = binocular _unit;
scopeName "main";
{
if ((_x select 0) isEqualTo _binocular) then {
// note: if there is no magazine, _x(4,0) will be nil, which skips the breakOut.
(_x select 4 select 0) breakOut "main";
};
false
} count weaponsitems _unit;
""
_this call CBA_fnc_binocularMagazine

View File

@ -17,13 +17,4 @@
ACE_DEPRECATED("ace_common_fnc_removeBinocularMagazine","3.8.0","CBA_fnc_removeBinocularMagazine");
params [["_unit", objNull, [objNull]]];
private _binocular = binocular _unit;
private _selectBinocular = currentWeapon _unit == _binocular;
_unit addWeapon _binocular;
if (_selectBinocular) then {
_unit selectWeapon _binocular;
};
_this call CBA_fnc_removeBinocularMagazine