SA-MP Forums Archive
SetPlayerCameraLookAt - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPlayerCameraLookAt (/showthread.php?tid=397859)



SetPlayerCameraLookAt - Roka_Kuroki - 07.12.2012

How to use this camera turned here as in the image below:



For example what would the team worked not only in one place but everywhere where, because there is the right kind of car
Help


Re: SetPlayerCameraLookAt - dr.lozer - 07.12.2012

they use Image2Textdraws to make like that picture


Re: SetPlayerCameraLookAt - Roka_Kuroki - 07.12.2012

I have no photo, and turn the camera


Re: SetPlayerCameraLookAt - Lordzy - 07.12.2012

Well you could try it with this small snippet.
pawn Код:
new File:cpos;
CMD:getcpos(playerid, params[])
{
 new Float:xcp, Float:ycp, Float:zcp;
 GetPlayerCameraPos(playerid, xcp, ycp, zcp);
 new fstr[128];
 format(fstr, sizeof(fstr), "SetPlayerCamerPos(playerid, %f, %f, %f);\r\n", xcp, ycp, zcp);
 cpos = fopen("Camera_coords.txt", io_append);
 fwrite(cpos, fstr);
 fclose(cpos);
 return 1;
}
Set your camera position to what you need and use this command. You can see a samp function written on Scriptfiles-->Camera_coords.txt file. Choose that function and write it into a command or at place where you want the camera pos to be set.


Re: SetPlayerCameraLookAt - Roka_Kuroki - 07.12.2012

I need something Tipo such as coordinates in this function but then they are not true test

new Float:CAM[3],Float:POS[3];
GetPlayerCameraPos(playerid, POS[0], POS[1], POS[2]);
GetPlayerCameraFrontVector(playerid, CAM[0], CAM[1], CAM[2]);
CAM[0] = POS[0]+floatmul(CAM[0], 5.0);
CAM[1] = POS[1]+floatmul(CAM[1], 5.0);
CAM[2] = POS[2]+floatmul(CAM[2], 5.0);
SetPlayerCameraPos(playerid, POS[0]-0.2, POS[1]+11.2, POS[2]+0.3);
SetPlayerCameraLookAt(playerid, CAM[0]-0.02, CAM[1]+1.2, CAM[2]+0.1);


Re: SetPlayerCameraLookAt - Roka_Kuroki - 07.12.2012

Up...


Re: SetPlayerCameraLookAt - Roka_Kuroki - 08.12.2012

help me


Re: SetPlayerCameraLookAt - Roka_Kuroki - 08.12.2012

helooo


Re: SetPlayerCameraLookAt - Roka_Kuroki - 08.12.2012

help


Re: SetPlayerCameraLookAt - [FSaF]Jarno - 12.12.2012

https://sampforum.blast.hk/showthread.php?tid=355296 (Under Rules & Guidelines):

You may only bump your thread after 24 hours has passed since the last reply.

You have bumped this thread 3 times in one day.

Also, no one is going to help you when they have no idea what do you want (i didn't understand a single sentence in your post)