there is an example in the lite-c workshops
Code:
function camera_follow(ENTITY* ent)
{
   while(1) {
     vec_set(camera.x,offset);
     vec_rotate(camera.x,ent.pan);
     vec_add(camera.x,ent.x);
     vec_set(camera.pan,vector(ent.pan,-10,0));
     wait(1);
   }
}




SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE