NPC Knockback High Level Question

jkaczmar

New member
I'm having trouble understanding the overall approach for setting up knockback. Is this correct if I want my NPC to be staggered by a bullet from my player?

  • NPC should have the ability Impact Knock Back close to the top of the list set to Manual/Manual with Ability Index of 13 to fire off the correct animation.
  • Players gun should have some impact force associated with the weapon. Mine is set to 20 for testing purposes.
  • Players gun should have Character Knock Back enabled. I set the Impact Knock Back ID to 13 as well guessing that it might tie to the Ability Index of 13, but I have a sneaking suspicion that's not what this number is for.
Do I have the high-level approach correct or is this not it at all? My NPC gets hit and dies but I can't get any stagger animations to work. I've searched the examples in the demo trying to find a similar situation, but I couldn't find any.

Thanks in advance for any help you can lend.
 
This looks good but one thing:

Players gun should have Character Knock Back enabled. I set the Impact Knock Back ID to 13 as well guessing that it might tie to the Ability Index of 13, but I have a sneaking suspicion that's not what this number is for.
Only one knockback ability can exist on the character so this ID isn't tied to the Ability Index. It is instead the value that should be set for the AbilityIntData field within the animator. The AbilityIndex is 13 by default, but that value is separate from the AbilityIntData allowing you to have multiple knockback effects used by a single ability.
 
This looks good but one thing:


Only one knockback ability can exist on the character so this ID isn't tied to the Ability Index. It is instead the value that should be set for the AbilityIntData field within the animator. The AbilityIndex is 13 by default, but that value is separate from the AbilityIntData allowing you to have multiple knockback effects used by a single ability.
Ok, got it. I was able to get everything tweaked so that my NPC gets smacked around approrpriately when hit. Thanks for the help!
 
Back
Top