ACE3/TO_MERGE/agm/Scopes/functions/fn_inventoryCheck.sqf

22 lines
428 B
Plaintext
Raw Normal View History

// by KoffeinFlummi / commy2
private "_new";
_new = _this call AGM_Scopes_fnc_getOptics;
if (isNil "AGM_Scopes_Optics") then {
AGM_Scopes_Optics = ["", "", ""];
};
if (isNil "AGM_Scopes_Adjustment") then {
AGM_Scopes_Adjustment = [[0,0], [0,0], [0,0]];
};
{
if (_new select _forEachIndex != _x) then {
AGM_Scopes_Adjustment set [_forEachIndex, [0,0]];
};
} forEach AGM_Scopes_Optics;
AGM_Scopes_Optics = _new;