#include "script_component.hpp" /* * Author: BaerMitUmlaut * Handles guidance input for MCLOS guided missiles. * * Arguments: * 0: Direction (0 = up, 1 = right,...) * 1: Key is pressed (true) or released (false) * * Return Value: * True if missile guidance is active, false if not * * Example: * ["up", true] call ace_missileguidance_fnc_mclosKeyHandler; * * Public: No */ params ["_dir", "_keyDown"]; if (isNull GVAR(mclosMissile)) exitWith {false}; GVAR(mclosInput) set [_dir, parseNumber _keyDown]; true