I need an ability to be triggered if the player hold two specific keys at the same time, but without restriction to the order in which the keys are pressed. Currently chorded actions will only trigger in a specific sequence for me (like a combo).
In this case, IA_DirectionalBoost will ONLY trigger if I pressed left shift while holding spacebar. It will not work if I hold shift and then press spacebar.
Here I have added multiple key bindings, which logically for me will mean that I can press either button and it will check if the other action is active.
However this results in the ability triggering if I just press shift alone specifically. It does not trigger in any other circumstance. I don’t get why?
There must be a way to have reversible chorded actions, this is super common in games.
You can set up two INPUT ACTION EVENTS and then connect them to an AND node, and connect that to a BRANCH. If both buttons are pressed, then they will satisfy the AND condition, passing through the TRUE condition of the BRANCH.
The order in which the buttons are pressed is irrelevant.
In my fairly empty 5.3 project I am getting different behavior. IA_DirectionalBoost triggers no matter which is pressed first. You have another trigger that is setup in IA_DirectionalBoost file that is stopping it from firing.