SA-MP Forums Archive
How to get the location on a body? - 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: How to get the location on a body? (/showthread.php?tid=598975)



How to get the location on a body? - AndreiWow - 19.01.2016

I want to attach a 3D text to a player, how to get the location on his body?


Re: How to get the location on a body? - vassilis - 19.01.2016

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer


Re: How to get the location on a body? - Gammix - 19.01.2016

Use an attachment editor and copy the fOffsetX, fOffsetY, fOffsetZ coordinates.

You can also make use of EditPlayerObject and OnPlayerEditAttachedObject to gather coordinates.