Need help with basic RPG click to enter auto-attack style combat

Hi guys,
I’m pretty new to Unreal and need some help making this combat system work using blueprints. I am using a top down template and currently have a full working inventory, hp system, enemy AI, enemy health, and a way to trace and check if I have hit my enemy AI character (and do some damage with each click from as far as I can see them).

What I want to create now is so that if the trace against the AI is true using left click (or right click, doesn’t matter to me) to have my character follow the AI character and then engage him in combat (kind of like runescape if you remember that) until someone dies. The value combat can be random numbers based on an attack power for each character.

I’ve tried using the thinking process of using a variable called “incombat is true” if trace hits actor AI, and then labeling that, but haven’t been able to come up with anything that starts the combat. Any help is appreciated please! Thank you.

Still trying to figure this out if anyone has anything they can help me with!

For anyone else wondering about this, I sort of figured it out using line trace, move to, and box collision which puts the characters in combat with each other using timers that damage each other multiplied by attack power. A little glitchy but works most of the time.

I’d love to see your BP’s for this if possible. How do they discover eachother with LineTrace? Is it spheric?