Yeah Im sorry I forgot to add the actual camera.pan and camera.tilt code in there... add this code below what I posted so that the camera always looks at the player.

Code:
vec_set(temp,player.x); 
vec_sub(temp,camera.x);
vec_to_angle(camera.pan,temp);