I’m currently implementing the attack animation and hit detection for enemy actors.
At the end of an attack ends, the enemy have to do two things:
1.Set attack animation to unplayable, which can easily done in the animation BP.
2.Clean some of the member variable value in enemy class, which can be done, in my thought, in 2 ways:
a: call clearvariables() function in animation BP, them implement this function in C++ (this is my current solution)
b.trigger an animation end notify in animation BP, catch the event and process it in C++ enemy class
I think that the second solution is better, since I can keep it from messing animation BP graph, and keep the
function call in C++ class. The question is, I have no idea how to do it.
If anyone knows how to do it, or even have a better solution for it, I will appreciate your help.