FPS AI Script

Hey guys
I am making an FPS game and its all good
However I am stuck in AIs.I can use the waypoint system for the enemy thats no problem but I want to know how to make a Hfriendly AI

Just something as simple as follow and shoot will do

If there are any other useful AI scripts I am open to it

for following: you could try placing way points dynamicaly and get the AI to follow you that way, right? haven’t done any AI so haven’t had this problem.