Position camera infront of player
#4

Quote:
Originally Posted by Babul
maybe that few commands will help you - the Radius R is set too high at 10, 4 should do fine for the skin selecion if you want the camera close to the character.
Код:
	new Float:X,Float:Y,Float:Z,Float:A,Float:R=10;
	GetPlayerPos(playerid,X,Y,Z);
	GetPlayerFacingAngle(playerid,A);
	new Float:CX,Float:CY,Float:CZ;
	CX=X+(R*floatsin(-A,degrees));
	CY=Y+(R*floatcos(-A,degrees));
	CZ=Z+1;
	SetPlayerCameraPos(playerid,CX,CY,CZ);
	SetPlayerCameraLookAt(playerid,X,Y,Z);
SetPlayerCameraPos is easier.
Reply


Messages In This Thread
Position camera infront of player - by MummyKillerSLO - 05.04.2010, 13:45
Re: Position camera infront of player - by [MWR]Blood - 05.04.2010, 13:48
Re: Position camera infront of player - by Babul - 05.04.2010, 14:08
Re: Position camera infront of player - by [MWR]Blood - 05.04.2010, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)