It is possible to add additional hit and block reactions and the easiest way of doing that is by using tools helper.
Open helper window by clicking on 'Tools/Combat Framework/Add Animation/TakeHit'.
It will open the window where additional options need to be
set.
Usage:
- Assign player or NPC object where new animation will be
created. It needs to have valid animator component andanimator must reside in 'Resources/Animators' folder.
- Next, drag hit reaction clip that will be associated with hit number ( 'Take Hit Num' )
- Also, it is possible to drag the 'block hit' reaction clip that will be associated with 'hit number' in case a character is blocking.
- Assign hit number 'Take Hit Num' that, when attack with that number hits, will trigger hit or block reaction.
- And last, assign flag if the system should allow replacing animator state with the same name or should it throw an error.
Click 'Create' and its done. You can see new take hit and block hit ( if created) states in animator and add additional transition if wished.