Why Enemy Ai Stops and not chase the player or Roam the Area?

Like if the player stun the enemy they stood the same place and do not the things you told them to to do anymore? here’s a video so you understand better.
edit: the website says the video files is too big :frowning: …it’s only 34mb

Hey @CoreRageS!

Typically when someone wants to post a video they’ll need to host it somewhere else and then post a link- the forum website will then show the video on the post!

So with this picture there’s really not enough information to go on with what is happening. I assume the enemy is chasing the player and then stops completely if it loses sight of them?

Regardless, we will need to know things like:
What happens in the BTTask_ChasePlayer and BTTask_Look_Around?
What does the flow look like? Try opening your behavior tree with the game running- you can tell it to watch a specific character and it will show the logic moving and lighting up!

i’ll see if can upload the a shorter vid in a min

alright heres the vid.
and she only chase the player when you go close to her, for some reason :woman_shrugging:

and also this one, i know i’m missing something but i don’t find yet. any ideas why the character aint doing her duties

1 Like

Could you post what’s inside the two tasks?
btw I love your game style

1 Like

Yes, I’m thinking the issue is in the tasks or the AI controller. You’re not using an “Event Execute Finish” somewhere, or there is a boolean requiring the robot to see you for it to move, when you need it to continue moving to the place the player was last seen.

1 Like

thanks, so this is what did for her behavior, but after that, she just gets lost, idk

so this is her Blueprint codes as i’m checking
i’m not really sure whats the problem in there…

when running the game put your mouse over here so you can see it’s vaule

i’m looking at it but i still don’t see a solution :sob:
the only thing i have in mind is to delete all of her behavior and make a new one, which i don’t want to do just, because it prolly come up to the same problem again, i need help

i see,the enemy seen player forever.

you could try add this to your AIcontroller,and disconect the on see pawn event in enemy class.because you have a AI perception in AIcontroller(it includes a sight sense).

i’ll try that out now

this is how it set up

the last part is add this to the chase player task

I’m using unreal engine 5.2.0 so Detection by Affiliation does not exist in it, or i don’t really have to worry about that?

There’s a video above.you should click the +icon to add a sight config.the Affiliation is inside.

I see it now, my bad, implementing them now XD

so here’s the results, for some reasons she only ignores the duties when she gets stunned

the goal i have for her is just to get stun, then repeat her back behavior. looks like i kinda messed everything or i’m missing one single thing OMG, :joy::sob:what do you think?

Seems you hit her and disable her movement then never enabled again so she can’t move.you could try replace the disable movement node with Stop Movement immediately node.(I never use the disable node,so I don’t know how to enable it,you could try search for enable movement to see if there is one)

imma try it