ACE3/TO_MERGE/ace/arty_computers/gyk-37/fnc_doFFE.sqf

28 lines
1.1 KiB
Plaintext

//fnc_doFFE.sqf
#include "script_component.hpp"
[FFE_ID, true] call FUNC(switchMenu);
_missionData = GVAR(currentComputer) getVariable QGVAR(currentMission);
_batteryData = GVAR(currentComputer) getVariable QGVAR(batteryData);
_solutions = GVAR(currentComputer) getVariable [QGVAR(currentSolutions),[]];
_solutionsIndex = GVAR(currentComputer) getVariable [QGVAR(currentSolutionsIndex),0];
_moc = (([_missionData, IDC_Mission_ControlMethodOfControlSelect] call CBA_fnc_hashGet) select 2);
_roundCount = parseNumber ([_missionData, IDC_Mission_EngageRoundCountInput] call CBA_fnc_hashGet);
_ammoType = (([_missionData, IDC_Mission_EngageAmmunitionTypeSelect] call CBA_fnc_hashGet) select 2);
_fuze = (([_missionData, IDC_Mission_EngageFuzeTypeSelect] call CBA_fnc_hashGet) select 2);
_commands = [(_solutions select _solutionsIndex), _roundCount, _ammoType, _fuze, _moc] call FUNC(formatFireCommands);
GVAR(missionComputed) = true;
ctrlSetText [IDC_FFE_lowDisplay, (_commands select 0)];
ctrlSetText [IDC_FFE_MTODisplayLow, (_commands select 1)];
[] call FUNC(initFFE);