#include "script_component.hpp" /* * Author: Brandon (TCVM) * Cycles camera thermal mode (if avaliable) * * Arguments: * 0: Guidance Arg Array * 1: PFID * * Return Value: * None * * Example: * [[], 0] call ace_missileguidance_fnc_guidancePFH; * * Public: No */ params ["_cameraNamespace"]; private _tiIndex = _cameraNamespace getVariable [QGVAR(currentTIModeIndex), 0]; private _tiArray = _cameraNamespace getVariable [QGVAR(thermalTypes), []]; if ((count _tiArray) == 0) exitWith {}; if ((_tiIndex + 1) >= count _tiArray) then { _tiIndex = 0; } else { _tiIndex = _tiIndex + 1; }; _cameraNamespace setVariable [QGVAR(currentTIModeIndex), _tiIndex]; [_cameraNamespace, _tiArray select _tiIndex] call FUNC(camera_setViewMode);