SA-MP Forums Archive
Coordinates help - 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: Coordinates help (/showthread.php?tid=287780)



Coordinates help - sherlock - 04.10.2011

I'm not too sure how to get co-ordinates for a tutorial. What i mean is when you have a tutorial on a rp server,it has the camera in the air looking at the place and this needs 2 sets of coordinates (SetPlayerCameraPos and SetPlayerCameraLookAt) But since these are different co-ords to XYZ i dont know how to get them.


Re: Coordinates help - Pharrel - 04.10.2011

is the same as setplayerpos... using /save you can do it...


Re : Coordinates help - Naruto_Emilio - 04.10.2011

Oh there is euhmm a fs made by Ryder i think it will start making you a class with the SetPlayerCameraLookAt and everything, just hit search and put this "Class Maker"


Re: Coordinates help - sherlock - 04.10.2011

Quote:
Originally Posted by Pharrel
Посмотреть сообщение
is the same as setplayerpos... using /save you can do it...
so its the X and the Y or the Y and the X or what?


Thanks,but i dont want to make class i just wanna know how to get the co-ords.


Re: Coordinates help - sherlock - 06.10.2011

[bump]


Re: Coordinates help - Issam - 06.10.2011

Quote:
Originally Posted by sherlock
Посмотреть сообщение
[bump]
for SetCameraPos - I use airbreak, then /save.
For Setcameralookat - go on the ground,or air or when do you want it to look at and /save
It will show look at the coords of SETCAMERALOOKAT,from SETCAMERAPOS


Re: Coordinates help - sherlock - 07.10.2011

Quote:
Originally Posted by Issam
Посмотреть сообщение
for SetCameraPos - I use airbreak, then /save.
For Setcameralookat - go on the ground,or air or when do you want it to look at and /save
It will show look at the coords of SETCAMERALOOKAT,from SETCAMERAPOS
I know! nobody is telling me wether it is X,Y or Z that i need or both or which one goes with which..


Re: Coordinates help - Jeffry - 07.10.2011

SetPlayerCameraPos
• This is the point where the camera will be.
• Just image that this is you with a photo. It will be the pos where you are standing.
• Parameters: (playerid, Float:X, Float:Y ,Float:Z)

SetPlayerCameraLookAt
• This is the point where the camera looks to.
• Imagine that this is the point you want to take a photo of. The camera will center this point and look at it.
• Parameters: (playerid, Float:X, Float:Y ,Float:Z)


All in all:
First get the pos where your camera is supposed to be (SetPlayerCameraPos) and then go to the point where the camera should look at (SetPlayerCameraLookAt).


Jeffry


Re: Coordinates help - sherlock - 07.10.2011

Ooh i get it now thanks :P So they can both be exactly the same?


Re: Coordinates help - Jeffry - 09.10.2011

Quote:
Originally Posted by sherlock
Посмотреть сообщение
Ooh i get it now thanks :P So they can both be exactly the same?
Theoretically they could, but I don't know how this will look ingame.