Try this:
Code:
var camera_dist[3] = 100,0,-25; //play with those values to place camera where You want to
function camera_movement
{
while(player != 0)
{
CAMERA.pan += 0.1 * ang(player.pan-CAMERA.pan);
CAMERA.tilt += 0.1 * ang(player.tilt-CAMERA.tilt);
vec_set(temp,camera_dist);
vec_rotate(temp,player.PAN);
CAMERA.X += 0.4*(player.X - temp.X - CAMERA.X); //play with 0.4 to change delay
CAMERA.Y += 0.4*(player.Y - temp.Y - CAMERA.Y);
CAMERA.Z += 0.4*(player.Z - temp.Z - CAMERA.Z);
wait(1);
}
}
I hope that's what You want to

Cheers.