var head_vector[3]; function camera_function { while(player != 0) { vec_for_vertex(head_vector,player,150); //150 is nr of vertex top of the head vec_set(camera.x,head_vector.x); //place camera allways at this vertex position camera.pan = player.pan; camera.tilt = player.tilt; camera.roll = player.roll; wait(1); } }