how would I add a block and dodge/evade function in unity and I wan’t the doge to be a doge with invincibility and blocking with invincibility and a function to push away the opponent I kinda have a concept of scripting the action but should I do it as a boolean or a trigger?

For a dodge, you want to trigger some animation, and disable collision with enemy (you could disable the collider component, especially if you want to roll through enemies, or switch the code that handles damage)
Similar for blocking, if you only block from the front, you would have to handle it with code
1 Like
Oh one Lol I speed type I will edit the op but yeah so ill try the code and ill update the op to Give brief update