fix(optics): keep standalone air FLIR module independent

This commit is contained in:
2026-06-24 12:01:38 -03:00
parent 5df06491a3
commit 4da55a1204
2 changed files with 12 additions and 52 deletions
+10 -3
View File
@@ -8,16 +8,23 @@
disableSerialization;
params ["_display"];
private _display = _this;
if (_display isEqualType []) then {
_display = _display param [0, displayNull];
};
if (isNull _display) exitWith {
systemChat "[BRAF FLIR] ERROR: initRSC received an invalid display.";
};
if (isNil "BRAF_fnc_flirControls") then {
systemChat "[BRAF FLIR] WARNING: BRAF_fnc_flirControls is not loaded.";
};
uiNamespace setVariable ["BRAF_FLIR_UI_Display", _display];
[] call BRAF_fnc_shutdownRSC;
uiNamespace setVariable ["BRAF_FLIR_UI_Display", _display];
private _pfh = addMissionEventHandler ["EachFrame", {
if (cameraView != "GUNNER") exitWith {};