how would i make a script to make an enemy walk around an area and when i get a certain amount of distance away they start to shoot at the player? please help!
The FPS tutorial has some basic enemy AI that walks between any number of waypoints, then attacks if within a certain distance. That might be your best choice for a quick solution. If you want a more complicated solution then I would recommend searching AI algorithms and see what comes up.