hi,
my 3rd person camera script looks like so:
Code:
function camera_follow(ENTITY* ent_for_camera)
{
	vec_set(camera.pan,vector(ent_for_camera.pan,-30,0)); // look in player direction, slighty down  
	while(1) 
	{
		vec_set(camera.x,vector(-275,0,200));  // camera position relative to the player      
		vec_rotate(camera.x,ent_for_camera.pan); // rotate the camera position with the player
		vec_add(camera.x,ent_for_camera.x);      // add player position
	
		wait(1);
	}
}


but like that I can only look left and right, but not up and down.
How do I do that?