01.12.2012, 15:29
How to set camera to look like (camera when player aim) ?
GetPlayerCameraPos(player,x,y,z);
GetXYinFront(playerid,x,y,1.0);
SetPlayerCameraPos(player,x,y,z);
GetPlayerCameraPos(player,x,y,z); GetXYinFront(playerid,x,y,1.0); SetPlayerCameraPos(player,x,y,z); |
new Float:x, Float:y, Float:z;
GetPlayerCameraPos(playerid, x, y, z);
new string[128];
format(string, 128, "Position of the camera is %f, %f, %f", x, y, z);
print(string);