Hi y’all,
Noob here looking for help on how to make FPS(player) chase and catch fleeing enemy. I have read through a lot of AI tuts that seem to cover only the enemy chasing the FPS(player). Couldn’t find any with the FPS(player) chasing the enemy…
Hi Warrior and Mr. Duskling,
Anthony here. Thought i had a good handle on how to do this and after failing miserably I thought I would bother you a bit more. What I am trying to do is:
Make camera/fps follow an enemy along a path and catch the enemy if it gets within a certain distance. Example would be a plane dogfight where one plane(which is the camera and fps) is chasing the enemy plane as it tries to evade and locks on and shoots if close enough.
I know how to move the enemy along a path, but struggling with how to do the above.
I am really trying to learn as much as I can about Unity and this forum has been invaluable to me.
Thanks Dusk,
I think I am getting it. What I want is the player(fps) would be automatically following the enemy at a set speed on the z-axis, slightly behind him. The enemy would be trying to evade by going up, down or side to side and if the player can follow him close enough for a few seconds, the player can lock on and shoot… I am a pretty decent designer/animator, but lacking in the scripting department.
So I guess you are trying to program some basic AI.
If you are lacking in the script department, I wouldn’t continue with this project. You should go and read a book about unity, grasp some skills with scripting, and then come back and you will see the whole project in a different and more efficient perspective.