I need help scripting a double-tap in visual scripting

This is the current script I have set up to try and detect a double-tap for a dash action.


I apologize I just realised none of the values can be seen


Might be a lot simpler if you use a timestamp. When you press the button, you check current time - timeStamp =< dashAllowedTime resulting in 2 options, both starting with timeStamp = currentTime.

It could simplify it but the problem is that both on input system event button’s trigger at the same time causing the character to constantly dash.

I’m not sure on the new Input system, but if it doesn’t have a down/held/released, you can add a boolean check isHeld, so part of the routine operates if held and branches back into whether held or not.