Hello there!
I am really familiar on how to make a combat system but sometimes i ask myself is there a better way on making it? Am l making it right?
Most of my worries goes on how to make like when a player starts to attack then he wont be able to do a second attack in the same time before the first one finishes or when the player hits an enemy, then that enemy should be stunned and not be able to attack back because its been comboed by an another player.
I alway make a folder when a player joins and add there a bool value that if its true he cant attack or make any other move like run,block,dash. If its false he can do whatever he want and turns true only when he performs an attack or if he just got attacked. In that folder i also keep any other values that dont need to be saved like if he is swimming or what weapon style he is using currently and more.
Is this a good way of making it?
Any suggestion will be greatly appreciated!!!