fix(optics): keep standalone air FLIR module independent
This commit is contained in:
@@ -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 {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user