How do you capture an input sequence / string?

I’ve been trying to figure this out for a while now with no luck whatsoever.

I’m trying to capture the player’s input to look for strings / sequences for advanced movements (dodge, dash, run, etc) but haven’t been able to.

I get the logic that the inputs need to be entered into a temporary array and the values compared to a list of valid strings. I also understand that using axis inputs from an analog stick is different than a normal button tap in that you need to look for the axis value and then a reset / normal range and then another input.

The problem is that I have NO clue how to actually capture each input or what the arrays should look like.

Any help would be greatly appreciated.

You are making it sound much harder then it is… You should watch this tutorial than after watching that I recommend you watch all the other massive Official Unreal Engine Tutorial. It’s a very great place to start.

EDIT: So I read your post all wrong and thought you were asking for users input.
So example you want a player to double tab to dash.

  1. Players presses D. Add +1 to dInteger(variable for amount d pressed).
  2. If dInteger = 2 than DASH else do a delay 1 to set dInteger = 0 (the player has 1 second to do a double tap or else it gets reseted and back to 0)

when you press a button, append a letter to a string, then right chop 1 character from the string, so you get a “first in first out” type of stack, and use a timer that resets this string, if the player doesn’t give any input. then you have to compare that string with your list of attacks, which should be arranged in order of most complicated to least complicated inputs, so the more complicated attacks have higher priority. that way, Down forward down highpunch is recognized, even if forward down highpunch is a separate attack.