Simple and fast way without math grin
Place a bone in your playermodel at the pos where the camera should be.
use this code
Code:
void cam2bone(STRING* bonename){
  while(my){
     vec_for_bone(camera.x,   me, bonename);
     ang_for_bone(camera.pan, me, bonename);
     wait(1);
   }
}
..
action myPlayer(){
 cam2bone("Name of the in med placed bone");
 ..
}


Same works with a vertex of course


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;