Hello!I made a map like a maze and an AI that chases the player.When the player gets out of range,it switches to a patrol state and it goes to a target point.But I have 2 problems:
1.When it switches to patrol state,the AI walks like 10 times slower.
2.I made smaller portions of the maze where the nav mesh is smaller,to be impossible for the AI to chase the player.But the AI doesn’t switch to it’s patrol state;just waits in that point.
Not enough information. How do you control your AI? BP or BT? If BT, do you have custom move nodes? In BP, which move commands are you using?
Have you tried using gameplay debugger or vislog to investigate the issue?
You’re main issue here is that you’re requesting AI to move every frame. Our move requests are latent, meaning you ask AI to move and then wait for it to finish. Repeating the request every frame interferes with movement logic, and you’re experiencing a bug we’ve fixed for 4.15 that resets the movement speed on every movement request.
Cheers,
–mieszko
Thank you!That helped a lot!