AI Stop moving

Hey Guys!

I have this problem where my AI enemy stops moving after me or the object set to it. I have 5 characters generated by a spawn volume and they start coming but sometimes when one of them die, one of the others just stop moving.

Here is my code:

This is my Enemy Class:

And this is my AI Code:

Can anyone tell me what’s wrong?

Thx.

Understood.

Here I have my codes:

Adjusting chances:

Enemy GetDamage:

Enemy Hits Character:

Projectile Hits Enemy:

I’ll try debugging the “On Fail”.

Thx.

Well, guess I’ll have to force the AI to listen to me, haha.

Thanks for the help, man! :smiley:

Where is the code that decrements your life points or adjusts the chances?

Also try running a print string off “On Fail”. In my experience sometimes the AI randomly fails your move to command and I could never figure out why so personally I coded in a fail state that made sense of the fact that the AI wasn’t moving like having them say “I’m busy right now”. Not necessarily ideal but better than having them do nothing.

Yeah all your code looks fine. My bet is that the On Fail is being called occasionally. This shouldn’t stop every AI, just the one that has the problem. As I said sadly I never figure out why this happens. The AI in UE4 is really unfinished out of the box from what I could tell.