RaeJjin0
Member
I would like to setup a knockback system, which would make the player or enemy getting pushed away from the opponent.
I've setup everything i wanted, but now the battles seems a little too... static if i can say. The opponents don't move even with root motion since they're colliding on each others, and i had the idea of making the knockback when i saw this video :
This is like the characters could be pushed away dynamically by each others when colliding with weapons, like you would push a cube by only walking onto it.
I know where to place the script, in the Character Health component at onDamage event, but i am struggling with writting the code...
Could someone who knows anything about C# help me doing it ? I wanted to play with the character's rigidbody, making it being -1 when damaged, but someone told me that TPC/UCC doesn't use the rigidbody system, so i really don't know how to code it, i am not good at scripting and i don't know how to use Opsive's huge libraries on the Api section so...
It is entirely my fault for being an ignorant, that's why i am asking for help while i keep searching for a solution on the other side x)
I've setup everything i wanted, but now the battles seems a little too... static if i can say. The opponents don't move even with root motion since they're colliding on each others, and i had the idea of making the knockback when i saw this video :
This is like the characters could be pushed away dynamically by each others when colliding with weapons, like you would push a cube by only walking onto it.
I know where to place the script, in the Character Health component at onDamage event, but i am struggling with writting the code...
Could someone who knows anything about C# help me doing it ? I wanted to play with the character's rigidbody, making it being -1 when damaged, but someone told me that TPC/UCC doesn't use the rigidbody system, so i really don't know how to code it, i am not good at scripting and i don't know how to use Opsive's huge libraries on the Api section so...
It is entirely my fault for being an ignorant, that's why i am asking for help while i keep searching for a solution on the other side x)