please help me!!! how to understand coordinate?
#1

Hi all!!!

I want to change house`s location. How can I understand Coordination? (for example : 1273, 2317.130615, 692.398498, 11.460937, 182.779815, 114, 1 ; // LV house 1)

Thanks for helping me!!!!!
Reply
#2

Go ingame and type "/save House1"
then go to "My Documents / GTA San Andreas User Files / SAMP / savedpositions.txt *"

Example:
AddPlayerClass(115,376.7854,-65.5121,1001.5078,136.4351,0,0,0,0,0,0);

376.7854 = x
-65.5121 = y
1001.5078 = z
136.4351 = Facing Angle

AddPlayerClass(skin, x, y, z, Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
Reply
#3

i know that the first four are (id, x, y, z, rotation) but the last one's are in the function i think
Reply
#4

The 1273 (first value) is the green house-icon.
The second value is the X-coordinate (2317.130615).
The third is the Y-coordinate (692.39849.
The fourth is the Z-coordinate (11.460937).
The fifth value is the rotation (182.779815).

Coordinates work like this:

The center of the map has the coordinates 0.0, 0.0, 0.0 (x, y, z).
The X-direction is from left (west) to right (east), if you look on the map from above.
The X coordinate is 2317.130615, so it's 2317m to the right. A negative value indicates that it's to the left.

The Y-coordinate is from down (south) to up (north).
Positive values mean that you have to go up when looking at the map.
So Y-coordinate 692.398498 is 692m above the center of the map.

The Z-coordinate is the height above the sea-level (so in this example, your house is located 11.46m above sea-level.

The rotation is measured in degrees.
0.0 is north, while 90 degrees is to the left.
180 degrees is south, 270 degrees is right.
So your house is pointing to the south.

What the 114 and 1 mean, I don't know.
You'll have to check the code to know what they mean.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)