I am making an AI with Dynamic Targets.
The Default Enemy is the player pawn.
But if some other Actor hits this Actor, (stray bullets, friendly fire) it will attack the Damage Causer instead.
It all works fine until the DamageCauser(which is the new Enemy) dies. Then he just keeps hitting at the dead body because the AI Actor doesnt know that his Enemy is dead.
Until someone else damages him and he gets a new Enemy…
My Question is how can my AI cast to this Enemy Actor to see if he is already dead.
Since the Enemy is not my pawn, but rather a changing Target i just don`t know how to cast to it…