ACE3/addons/scopes/functions/fnc_inventoryCheck.sqf
bux578 b556097896 cbafyied scopes
still lots of spawns and waitUntils in there
2015-01-16 13:15:14 +01:00

24 lines
427 B
Plaintext

// by KoffeinFlummi / commy2
#include "script_component.hpp"
private "_new";
_new = _this call FUNC(getOptics);
if (isNil QGVAR(Optics)) then {
GVAR(Optics) = ["", "", ""];
};
if (isNil QGVAR(Adjustment)) then {
GVAR(Adjustment) = [[0,0], [0,0], [0,0]];
};
{
if (_new select _forEachIndex != _x) then {
GVAR(Adjustment) set [_forEachIndex, [0,0]];
};
} forEach GVAR(Optics);
GVAR(Optics) = _new;