Hey
I am just trying to make a camera follow a player's tank from 3rd person but cant seem to get it to work correctly.

the tank moves fine, and rotates fine, but the camera stays in one position directly behind the tank.

what i am trying to say is, the camera does not rotate around the tank.

Here is the code i am using:

Code:
action move_tank()
{
	camera.tilt = -30;
	while(1)
	{
		if(key_pressed(17) == 1)
				c_move(me, vector(0, -5 * time_step, 0), nullvector, GLIDE);
		if(key_pressed(30) == 1)
			me.pan += 2 * time_step;
			//c_rotate(me, 4, IGNORE_MODELS);
		if(key_pressed(31) == 1)
			c_move(me, vector(0, 5 * time_step, 0), nullvector, GLIDE);
		if(key_pressed(32) == 1)
			me.pan -= 2 * time_step;
		
		camera.x = me.x + cx;
		camera.y = me.y + cy;
		camera.z = me.z + cz;

		wait(1);
	}
}


any help would be gladly appreciated laugh


HURRR DERP DERP DEERRPP HURR