Now there is a problem with the 3rd Person Camera. While I turn around the cam I see the player more times for short.

Here's my code:
Code:
//---------------------------------------------------------------------------------------------||
// 3rd Person Kamera Funktion
//---------------------------------------------------------------------------------------------||
var pan1;
var pan2;

void pl_cam()
{
	while(1) {
		pan1=cos(camera.pan)*300;
		pan2=sin(camera.pan)*300;
		camera.pan = player.pan;
		camera.x = player.x-pan1;
		camera.y = player.y-pan2;
		camera.z = player.z + 80;
		wait(1);
	}
}



mfg, Marc V.