For instance, I want to check if player pressed any key (or key combination) that is bound to auto missile locking actions (LockTargets, LockEmptyTargets, VehLockTargets, VehLockEmptyTargets).
So I write a piece of code that starts like this:
- call BIS_FNC_DISPLAYMISSION displayAddEventHandler
[
"KeyDown", " if ( ( _this select 1 in actionKeys 'LockTargets' or {_this select 1 in actionKeys 'LockEmptyTargets'} or {_this select 1 in actionKeys 'VehLockTargets'} or {_this select 1 in actionKeys 'VehLockEmptyTargets'} ) and {
It works if those actions are bound to single key presses, but it doesn't detect 2 or more simultaneous key presses (key combos).
Currently, I want to allow players press the key (or key combo) associated with the 'Custom Control 1' action and with the help of the KeyDown UI event handler detect when the player presses the key or keys and run a script.
Is there a workaround for this? Is it possible to fix this issue?
Thanks