working on a combat system and in this portion of the attack function im trying to make it to so when the final hit in the attack string (combo in this case) happens the target gets knock backed. this all works fine except for when the final hit (ComboHitCount = 4 meaning the 4th hit in the attack sequence is the final one) happens the combocount value is reset to 1 but knockback is only applied to the target at the start of the next attack when the combo has already been reset. im trying to figure out how to make it so knockback is applied on the 4th hit instead of the one after.
#attack function only registering to knockback AFTER final hit instead of when the final hit happens.
1 messages · Page 1 of 1 (latest)
Just to be sure, you start counting at 0, so make sure ComboHitCount is 3
0 1 2 3
hit 1 2 3 4
Or well, nevermind, I didn’t read that end 😆
The issue is that you only check for knockback before a hit
what should i do?
Easiest would be to move the attack call. But in reality, it would be far easier to just remove the knockback bool and just apply the impact inside that if statement
Basically what it does now is:
input player (4th input)
Check for knockback (counter is set to 3, so it’s false)
Attack
It should be
Input from player (4th input)
Attack
Check for inpulse
what do you mean by check for impulse?