I was Asked a good question thought I’d share it here…
So I do a “has used fast vorpal” and place that as true every time a quick attack goes and use a “has used Strong vorpal” every time a strong goes…There’s a branch that splits the two combo’s right before it decides what animation to play and based off True or False of those Booleans I play different combos…It all resets (along with the combo number count) on reset combo…
However many times you want to split your combo from there is all up to the game you make and how much time you’ve for animations…
As for hold I start a timeline when the button is pressed and stop it when the button is released…The timeline counts the milliseconds the button has been held down…at whatever time you’d like either call what you want them to do differently based on your hold time or set it as an anim notify in each animation that a hold can affect…Just make sure to include some logic for people who have released the button and repressed it…you’ll likely not want to count that as a hold but your call…
Also note some games attack on Button Release so if this is your kind of game your hold button would simply not play the next animation until the player has released the button…I’ve a mix and match of this depending on what sword you’re using…it can make button holds easier to deal with though…
My “attacking with vorpals” section in my character blueprint is the “largest” code I have but the most important so it does get a smidge big…Since it doesn’t call all that code at once i.e. you can’t be doing 12 combos at the EXACT same time so Unreal can more than handle it…Watch any of the Solus Tutorials and you’ll see his team greatly out does most anybody in relation to code in Blueprints and his game runs great… if still worried make a For loop count to 200 or something and watch unreal kick butt at all those calculations with without skipping a beat…now count how many you have in your single attack combo…not exactly the same kind of calculations there but you’ll get the point…
I’ll do a video tutorial of this now that you’ve asked but may be a few weeks until I can get it down…let me know if you’ve any questions…thanks…