What's to know?
vec_set(temp,your.x); //you is the player
vec_sub(temp,my.x); //me is the bad buy
vec_to_angle(my.pan,temp); // now MY looks at YOU
c_move(blah blah and in closing blah) now i move in that direction
Throw that in your code and you can get the AI to turn to any angle and move in that direction. Put that in the while loop and he will keep facing that direction if the target moves.