Need Help!
#1

So i have ******d alot,...
Checked Wiki alot...
Posted in the help section for help....

But no one seems to know how to get the SetPlayerCameraPos Co-ordinates...
What else did i try to get them?

1. i tried /save for the X Y Z but it was no good...
2. I tried making a custom command to reset the camera! But still nothing good... (The command worked awesome though)
3. and the list continues with custom commands and hours of googling and using wiki....

When i do /save X Y Z the camera always is facing south IG when i check if it worked (Even when i reset the camera to stand behind the player as how he spawned for the 1st time)


So my question is: How can i get the position for SetPlayerCameraPos?!
Please help me .....



Thanks in advance for the person that helps me.
Reply
#2

When you save the position of the Camera, you have to set the camera to look in the place you want. Check THIS
Reply
#3

I'd suggest you to use samp map editor; https://sampforum.blast.hk/showthread.php?tid=282801
Click View tab and click "Copy CameraLooAt() Coords"
Reply
#4

Quote:
Originally Posted by ]Rafaellos[
Посмотреть сообщение
When you save the position of the Camera, you have to set the camera to look in the place you want. Check THIS
Lets say i stand infront of a building i do /save 1# and move again and do /save #2

1# is where i stand and i want 2# to look at the person of 1#... how would i pull this off with that?
Reply
#5

Position 2# is the camera position, which will look at 1# position.

Example, 100.0, 100.0, 100.0 is our standing position. so we set "SetPlayerPos(playerid, 100.0, 100.0, 100.0);". 200.0, 200.0, 200.0 is our camera position, so we set "SetPlayerCameraPos(playerid, 200.0, 200.0, 200.0 );" and then we need our camera look at our standing position, so we set SetPlayerCameraLookAt(playerid, 100.0, 100.0, 100.0);".

Hope you understand!
Reply
#6

https://sampwiki.blast.hk/wiki/SetPlayerFacingAngle
https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle
Reply
#7

Quote:
Originally Posted by ]Rafaellos[
Посмотреть сообщение
Position 2# is the camera position, which will look at 1# position.

Example, 100.0, 100.0, 100.0 is our standing position. so we set "SetPlayerPos(playerid, 100.0, 100.0, 100.0);". 200.0, 200.0, 200.0 is our camera position, so we set "SetPlayerCameraPos(playerid, 200.0, 200.0, 200.0 );" and then we need our camera look at our standing position, so we set SetPlayerCameraLookAt(playerid, 100.0, 100.0, 100.0);".

Hope you understand!
i understand now, but lets say if that doesnt work, would you recommend SetPlayerFacingAngle? or just try to pull up your method and give it a few tries?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)