19.01.2011, 16:54
Sup, I made a little piece of code.
That is extremely simple. But the part I don't understand is; why doesn't the camera move?!
I try it on a blank Gamemode, still a frozen camera.
pawn Код:
#define CAMX -1817.9412
#define CAMY 769.3878
#define CAMZ 132.6589
#define CAMLX -1300.8754
#define CAMLY 68.0546
#define CAMLZ 129.4823
pawn Код:
new MC;
pawn Код:
MC = SetTimer("MoveCam",33,true);
pawn Код:
SetPlayerCameraPos(playerid,CAMLX,CAMLY,CAMLZ);
SetPlayerCameraLookAt(playerid,CAMX,CAMY,CAMZ);
pawn Код:
forward MoveCam(playerid);
public MoveCam(playerid)
{
SetPlayerCameraLookAt(playerid,CAMX+50,CAMY+50,CAMZ+2);
SetPlayerCameraPos(playerid,CAMLX+50,CAMLY+50,CAMLZ+2);
return 1;
}
I try it on a blank Gamemode, still a frozen camera.