Ai vs AI matched combat (like total war) how?

Like the title suggests I’m trying to find a solution to this problem.

What I want to achieve is this:

A character moves close to another Character.
From a certain point onwards, maybe on overlap for example, I want the two characters to enter into a matched combat mode.

That is, to orientate towards each other and fire off a specific array of animations, while switching between the attacking and defending animations.

So, Character A attacks -Character B defends and then vise versa.

Is that possible somehow?
Ideally, there should be playing corresponding animations. So for attack X the defender should play defence Y, etc.

What I want to achieve is seemingly simple but I couldn’t find anything remotely similar described on the internet in UNREAL.

Thanks in advance.

Yes, this is all possible in Unreal

1 Like

I’d guess that it is, but I’m not sure how.

If anyone is aware of a tutorial series or a course that teaches something like that I’d be really interested in watching it.

Hi.I didn’t play that game.but you could see if this help a little.


and you might need to adjust the scanning function.like only scan enemies not in combat state.so they can 1 vs 1

I do have an idea of the steps I need to take, not sure about the exact method though.

Anyone?

I’m mainly interested in the matched combat aspect.

I think I can achieve a generic fighting between an AI vs AI but I’m not sure how to make two different character blueprints communicate with each other in a way that one’s specific attack from an array of animations, triggers a specific counter-defense to another.

Maybe with an event dispatcher? Not sure how though.