mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Call CBA binocular functions - leave as wrapper
This commit is contained in:
parent
4b121480bb
commit
38b48390b5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user