I’m trying to make an attack combo system for a game, but I can’t figure out how to get it to reset within a certain amount of time unless an input is pressed to continue the combo. It is important to note that I don’t currently have animations for the attacks so it just prints a string instead to say it did something.
you can accomplish what your looking to do pretty easily using a multi-gate or a switch on int. below i made a basic example. basically each output pin of the multigate is an attack just substitute the print strings for a call custom event. also note that its looping so it will go back to 1 on the fourth press, this is a design choice so uncheck it if you like. now after the attack events we use a retriggerable delay, how this works is if the node gets called again before it reaches zero then it resets the delay timer, for example if a 2 second timer were activated again with 1 second left then it would reset the time and not call the script that follows it til it reaches 0. the last node is how we reset the attacks, basically if the delay reaches zero it will reset the multigate to use pin 0, or in other words it will end the combo.
I did not know that a retriggerable delay was a thing. Thank you for your answer.