SA-MP Forums Archive
X-Y-Z - 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: X-Y-Z (/showthread.php?tid=370034)



X-Y-Z - Youice - 18.08.2012

Hello sa-mp'ers,

I would like to know what do coordinate "X" - "Y" - "Z" stands for?

like if I made:

pawn Код:
SetPlayerPos(playerid, X +5, Y, Z);
pawn Код:
SetPlayerPos(playerid, X , Y +5, Z);
pawn Код:
SetPlayerPos(playerid, X , Y, Z+5);
just examples^^

What would happen to the player?,


Re: X-Y-Z - MegadreamsBE - 18.08.2012

X is from east to west. Y from north to south. And Z represents the height.


Re: X-Y-Z - TheArcher - 18.08.2012

According with the above poster. Your X+5 will teleport your player to the X coordinate (there should be a declarated variable with the X position) and adds 5 to the X value. For example the X axe is 2324.6789 will add 5 to the number 4.


Re: X-Y-Z - Youarex - 18.08.2012

An image explains more than 1000 words. Simply, it's a three dimensional concept; width (x), height (y) and depth (z).



Except the reference point is the center of the map.


Re: X-Y-Z - ikkentim - 18.08.2012

Coordinates 0,0,0 is just beneath the ground in blueberry, the x and y coordinates (on land) range from about -2500 to 2500.


Re: X-Y-Z - Youice - 18.08.2012

alright thanks for the info all!


Re: X-Y-Z - TheArcher - 18.08.2012

Quote:
Originally Posted by ikkentim
Посмотреть сообщение
Coordinates 0,0,0 is just beneath the ground in blueberry, the x and y coordinates (on land) range from about -2500 to 2500.
I'm pretty sure that in game is from -3000 to 3000