03.08.2010, 03:50
Quote:
|
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.
|
Код:
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;
}
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.


