here we go:
Code:


while(vec_dist(new_pos,my.x)>20)
{
...
vec_set(temp,vector(new_pos.x,new_pos.y,my.z));

vec_sub(temp,my.x);

vec_to_angle(new_pan.pan,temp);// new_pan.pan is the value holder

my.pan+=(new_pan.pan-my.pan)/20 //"20" is te slow down factor. set it to 1 and the player will turn towards the target immediately.
...
}