GetPlayerCameraPos problemo
#3

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
if i understand you right, you mean you want a moving camera on player class selection, then use a timer updates every what ever seconds.
No, take a peek at the following bit of code:
Код:
public OnPlayerConnect(playerid)
{
	if(!IsPlayerNPC(playerid))
		CameraPosCheck(playerid);

	return 0;
}

forward CameraPosCheck(playerid);
public CameraPosCheck(playerid)
{
	if(IsPlayerConnected(playerid)))
	{
	    new
	        Float:p[3];
	        
		GetPlayerCameraPos(playerid, p[0], p[1], p[2]);
		
		printf("%f, %f, %f",
			p[0],
			p[1],
			p[2]);

		SetTimerEx("CameraPosCheck", 100, 0, "i", playerid);
	}

	return 0;
}
Remain still and move your camera about for awhile. You will notice that even though you've moved your camera, its position doesn't update until about a second later.
Try moving your character now while moving your camera; it updates at a far faster rate than when your character isn't moving.

I simply want the camera to update at the same rate that it would if your character was moving, regardless of whether or not your character is moving.
Reply


Messages In This Thread
GetPlayerCameraPos problem - by Tannz0rz - 03.08.2010, 01:56
Re: GetPlayerCameraPos problemo - by willsuckformoney - 03.08.2010, 03:23
Re: GetPlayerCameraPos problemo - by Tannz0rz - 03.08.2010, 03:50
Re: GetPlayerCameraPos problemo - by Daren_Jacobson - 03.08.2010, 04:25
Re: GetPlayerCameraPos problemo - by Tannz0rz - 03.08.2010, 04:39
Re: GetPlayerCameraPos problemo - by Daren_Jacobson - 07.08.2010, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)