coordinates convert
#1

hi,


how can i get the player coordinates from some object coordinates?
So e.g. if i have this object:

pawn Код:
CreateObject(987,941.00000000,-1130.59997559,24.89999962,0.00000000,0.00000000,0.00000000);
how can i use this coordiantes with the SetPlayerPos function?


thanks.
Reply
#2

Код:
SetPlayerPos(playerid, 941.00000000, -1130.59997559, 24.89999962);
Though there is no angle.
Reply
#3

you can put the "angle" float

Код:
SetPlayerFacingAngle(playerid, 0.00000000); //if you want to place an angle, though there is no angle
Reply
#4

thanks. mhhh, but i already tried it like that and it didnt work.
Are you sure it can be done like that?
It seems like the coordinates of objects are a lot larger and longer than normal player coordinates?
Reply
#5

I have done it with the same way, and it worked, (try to approximate it?) be sure that numbers are matched correctly
Reply
#6

Quote:
Originally Posted by PawnoQ
Посмотреть сообщение
thanks. mhhh, but i already tried it like that and it didnt work.
Are you sure it can be done like that?
It seems like the coordinates of objects are a lot larger and longer than normal player coordinates?
Yes check the wiki too if you don't believe US.
Reply
#7

thanks all + rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)