Damage Hit Reactions System
Last updated
Last updated
The reaction system is called by the damage events of the health system internally, sending the signal of the damage received and position and mount so the system can know the direction and trigger the reaction which is basically to call to the action system of that character.
Each one having a main ID as the current category of reactions so you can have categories for reactions according to the state of the character like reactions from close combat, melee, etc...
That is the default reaction type so it follows a similar logic to the melee attack types you have a list of stuff with a type so the system checks for the elements on the current state and triggers the closest to the direction of the attack.
Sending the signal for an action system it self to play that animation