GetPlayerCameraPos returns X:0.00 Y:0.00 Z:0.00
#1

Hi.

Why when i using GetPlayerCameraPos at OnPlayerRequestClass the function, returns me:
Код:
X: 0.00 Y: 0.00 Z: 0.00
I don't know, but why it doesn't return normal camera pos?
Код:
case 0, 1, 2:
		{
		    new Float:X, Float:Y, Float:Z;
			
            SetPlayerPos( playerid, -2685.925292, -2395.514160, 3.264465 );
			SetPlayerFacingAngle( playerid, 77.605529 );
			
			
			GetPlayerCameraPos( playerid, X, Y, Z );
			printf( "Camera pos: X:%.2f | Y:%.2f | Z:%.2f", X, Y, Z );
			
			if ( X != -2699.76 /*&& camera[ 1 ] != -2393.5374 && camera[ 2 ] != 8.2042*/ )
			{
			    SetPlayerCameraPos( playerid, -2735.2820, -2361.4514, 24.9300 );
				SetPlayerCameraLookAt( playerid, -2734.4592, -2362.0229, 24.5299 );
			
				InterpolateCameraPos( playerid, -2735.2820, -2361.4514, 24.9300, -2699.7625, -2393.5374, 8.2042, 2500, CAMERA_MOVE );
				InterpolateCameraLookAt( playerid, -2734.4592, -2362.0229, 24.5299, -2698.7788, -2393.7117, 8.0342, 2500, CAMERA_MOVE );

				Streamer_UpdateEx( playerid, -2685.92, -2395.51, 3.26, 11 );
			}
		}
Reply


Messages In This Thread
GetPlayerCameraPos returns X:0.00 Y:0.00 Z:0.00 - by Edvin - 12.03.2013, 14:30
Re: GetPlayerCameraPos returns X:0.00 Y:0.00 Z:0.00 - by MP2 - 12.03.2013, 14:56
Re: GetPlayerCameraPos returns X:0.00 Y:0.00 Z:0.00 - by DiGiTaL_AnGeL - 12.03.2013, 14:58
Re: GetPlayerCameraPos returns X:0.00 Y:0.00 Z:0.00 - by IstuntmanI - 12.03.2013, 16:50
Re: GetPlayerCameraPos returns X:0.00 Y:0.00 Z:0.00 - by Edvin - 12.03.2013, 17:04

Forum Jump:


Users browsing this thread: 2 Guest(s)