Ai soldier script

im making a military first person shooter and im looking for enemy scripts but all the scripts i find are for zombies,not for soldiers that shoot you with guns :rage:,Anyone could provide a script that would make them follow you AFTER THEY SPOT YOU and then shoot you?:face_with_spiral_eyes:

http://arongranberg.com/astar/

i havent tried it yet but thanks for the reply,very usefull.still im confused wheather it will shoot or just follow you,but i guess ill work it out

:face_with_spiral_eyes:hey i tried using it but it just has alot of coding lengueje and a mess of scripts and i dont know how to apply it to anything with so much things,can you make the prefab?it would be very gratefull,helpfull and you would be gave alot of credit for it

This, and the subsequent episodes are a crash course in basic FPS AI.

find the prebuilt scenes in one of the folders. 90% of them should work automatically after you import them. You can clearly see where they are located when you see the import window with the list of files you are about to import.
Once of them needs some drag dropping to relink the files.

If you want to do something more simple look at “brackey unity” tutorials on you-tube. You can program enemies to chase you and attack you but they wont know how to get around walls.