mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22 lines
428 B
Plaintext
22 lines
428 B
Plaintext
// 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;
|