replace following code:
Code:
function camera_follow(ENTITY* ent) 
{ 
   while(1) { 
     vec_set(camera.x,vector(-150,10,25)); 
     vec_rotate(camera.x,ent.pan);
     vec_add(camera.x,ent.x);
     vec_set(camera.pan,vector(ent.pan,-10,0)); 
     wait(1); 
   } 
}


with:
Code:
function camera_follow(ENTITY* ent) 
{ 
   while(1) { 
     vec_set(camera.x,ent.x); 
     vec_set(camera.pan,ent.pan);
     wait(1); 
   } 
}


That set the camera at the players pos.


EDIT: Julz, you was faster wink

Last edited by Widi; 06/21/10 19:50.