attaching label to a moving/standing object - 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: attaching label to a moving/standing object (
/showthread.php?tid=633912)
attaching label to a moving/standing object -
ShoortyFl - 09.05.2017
Hello, I was wondering how can I attach a label to moving/standing object.
The reason I'm looking for this is when i have a label attached to a object and that object gets hit with a car I want the label to move with object. I know you can do it with
Streamer_SetArrayData but since Incogito removed documentation from the original thread it's been kind of a problem looking for the specifics. Thanks!
Re: attaching label to a moving/standing object -
Wolfe - 09.05.2017
Get the object position -
https://sampwiki.blast.hk/wiki/GetObjectPos
Then create a text label at the position of it -
https://sampwiki.blast.hk/wiki/Create3DTextLabel
Then update the label when the object moves -
https://sampwiki.blast.hk/wiki/Update3DTextLabelText