SA-MP Forums Archive
Getting a coordinate from the radar. - 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: Getting a coordinate from the radar. (/showthread.php?tid=320893)



Getting a coordinate from the radar. - Lorenc_ - 25.02.2012

How could I possible get the cordinate of this icon set on the map? Is there a solution?



Re: Getting a coordinate from the radar. - MP2 - 25.02.2012

Erm, GetPlayerPos?


Re: Getting a coordinate from the radar. - Lorenc_ - 25.02.2012

No, I just want to calculate what's the X, Y of that icon, not the players position. Pretty hard to explain lol.


Re: Getting a coordinate from the radar. - 2KY - 25.02.2012

Oh, so like the entire position of it? From tip to tail, basically? Just mess around with the radius, you'll get it eventually. Try a cube stock (they're in here somewhere)


Re: Getting a coordinate from the radar. - Lorenc_ - 25.02.2012

Lol, nooo. How can I simply get the position of it is what I'm asking.


Re: Getting a coordinate from the radar. - [HK]Ryder[AN] - 25.02.2012

My bad!@


Re: Getting a coordinate from the radar. - 2KY - 25.02.2012

The position of that icon is corresponding with the position of your player.. Using a cube function, you can get the coordinates of that specific icon ('create' a cube around the icon and update it).


Re: Getting a coordinate from the radar. - [HK]Ryder[AN] - 25.02.2012

Quote:
Originally Posted by 2KY
Посмотреть сообщение
The position of that icon is corresponding with the position of your player.. Using a cube function, you can get the coordinates of that specific icon ('create' a cube around the icon and update it).
Why should he create a cube when he doesn't want the Z position??


Re: Getting a coordinate from the radar. - 2KY - 25.02.2012

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
Why should he create a cube when he doesn't want the Z position??
Square. I apologize, it's 2 am here.


Re: Getting a coordinate from the radar. - park4bmx - 25.02.2012

If you wan to get the Position of it why dont you use it's pos that you created it with ?