[Problem] CameraLookAt
#1

Okey look.
I am doing a tutorial with SetPlayerCameraLookAt. and when the player finishes the tutorial
he spawned to the place I wanted but The camera is not behind he's back as it should be.

I am know that needed to do something with the SetPlayerCameraLookAt in the spawning X,Y,Z
but I dont know what.

Help please.
Thanks.
Reply
#2

pawn Код:
SetCameraBehindPlayer(playerid);
Reply
#3

Thanks Buddy
Reply
#4

Sorry for the Double Post but.
How can I decied the x,y,z of the CameraLookAt to look on the place I want..
Help, Thanks ..
Reply
#5

Quote:
Originally Posted by IsraelRPP
Посмотреть сообщение
Sorry for the Double Post but.
How can I decied the x,y,z of the CameraLookAt to look on the place I want..
Help, Thanks ..
1) Don't double post, it's a rule.


2)
pawn Код:
SetPlayerCameraLookAt(playerid, x, y, z);
Reply
#6

Okey sorry.

but i mean I saved the x,y,z but Its showing me something I dont want.
I mean like that. The PD is here and the camera is looking to the preshing square, I dont
know how to swich it to the PD...

Help
Reply
#7

Quote:
Originally Posted by IsraelRPP
Посмотреть сообщение
Okey sorry.

but i mean I saved the x,y,z but Its showing me something I dont want.
I mean like that. The PD is here and the camera is looking to the preshing square, I dont
know how to swich it to the PD...

Help
Try this,
pawn Код:
SetPlayerCameraPos(playerid, x, y, z);

I'm not sure if that would be the fix. But you must use both of the ones I provided for it to work,

For Example.

pawn Код:
SetPlayerCameraLookAt(playerid, x, y, z);
SetPlayerCameraPos(playerid, x, y, z);
^^ They would need to be added together in the designated area... ^^
Reply
#8

Quote:
Originally Posted by IsraelRPP
Посмотреть сообщение
Okey sorry.

but i mean I saved the x,y,z but Its showing me something I dont want.
I mean like that. The PD is here and the camera is looking to the preshing square, I dont
know how to swich it to the PD...

Help
Go there, get the position by typing /save. Go into your documents, gta user files, samp, savedpositions.txt. Open up the file and copy over the location you can see from there.
Reply
#9

I am using the same X , Y , Z for the CameraLookAt and for the SetPlayerCameraPos and same for the SetPlayerPos ?.

I done all of this and it showing to me like that :

-Police Station- I saved infront the police.

and the camera showing to me the wall behind me.
Reply
#10

Quote:
Originally Posted by IsraelRPP
Посмотреть сообщение
I am using the same X , Y , Z for the CameraLookAt and for the SetPlayerCameraPos and same for the SetPlayerPos ?.

I done all of this and it showing to me like that :

-Police Station- I saved infront the police.

and the camera showing to me the wall behind me.
You should probably set the camera away from the wall before you make the camera face that position:

https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)