Character knockback on projectile hit.
I want to have a projectile which adds a knockback on the Character that they hit.I tried "Launch Character" and "Add Impulse" directly in the Character Blueprint, only to notice that they stick to the ground like glue. Only with "Launch Character" the Character gets slightly pushed back a fixed amount and only when I add a insane "Launch Velocity", but instead when I change the Z Value, the Character gets knocked into the air like it's nothing.
After the knockback function in the Character Blueprint didn't work, I thought I could just add a "Radial Force" in the projectile, which also did not work. I tried playing with the Masses of the Bodies, which also didn't help.
What am I doing wrong? Help me.
Hoping for answers, Tenyoru
asked Apr 08 '18 at 01:37 PM in Blueprint Scripting
Radial Force and add impulse work only when a character is in ragdoll state(simulate physics). Also, launch character will just make your character move without hit motion. That would look unnatural. I think you should use hit animations with root motion. So when the character is hit by a projectile, it plays root motion so that move with hit animation.
answered Apr 08 '18 at 02:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here