How can I add my own movement script to an AI?
Hi, I'm currently working on a game where you have a top down view on a Plane and can fly around and shoot other planes, but I have troubles with the AI. I want the AI plane to follow the player, so I am using astar pathfinding. The problem with that is that the AI plane doesen't move like a plane should. It always stops when I fly by, turns around and flies behind me again, making it impossible to shoot it down or have a dogfight. I would like it to have the same movement as the player. It also should have a minimum speed, but I dont know how to change that in the AIPath script from astar. If you need more information just write it. It would be awesome if somebody could write me an answer, Thank you very much in advance.
Your answer
![](https://koobas.hobune.stream/wayback/20220613022929im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Diagonal movement, stopping at screen edge 0 Answers
How to make the AI use the grid 1 Answer