Something simple but doesn't work?
#1

Sup, I made a little piece of code.

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;
}
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.
Reply


Messages In This Thread
Something simple but doesn't work? - by WillyP - 19.01.2011, 16:54
Re: Something simple but doesn't work? - by playbox12 - 19.01.2011, 16:56
Re: Something simple but doesn't work? - by WillyP - 19.01.2011, 16:59
Re: Something simple but doesn't work? - by playbox12 - 19.01.2011, 17:01
Re: Something simple but doesn't work? - by WillyP - 19.01.2011, 17:01
Re: Something simple but doesn't work? - by Snowman12 - 19.01.2011, 17:22
Re: Something simple but doesn't work? - by WillyP - 19.01.2011, 18:02
Re: Something simple but doesn't work? - by Macluawn - 19.01.2011, 18:11
Re: Something simple but doesn't work? - by WillyP - 19.01.2011, 19:01

Forum Jump:


Users browsing this thread: 6 Guest(s)