Like ADS or hold shield, hold right button to hold shield to defence, release right button to lay down shield. How to make this with GAS and Enhanced Input?
I know how to trigger abilities when hold a button, but I don’t know how end it when release button.
1 Like
The simplest way would be to track the state with a boolean. A more advanced design might include an array of states that the player could be in at any given time and you add and remove states to and from the array. Since the input system fires events on key/button release, you could set it up to add the state on button press and remove it on button release. Code elsewhere would handle animations and buffs from shielding.