Attaching a marker to objects - 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 a marker to objects (
/showthread.php?tid=564495)
Attaching a marker to objects -
Jimmy0wns - 21.02.2015
Hello, is there any function to attach markers to certain object IDs?
Re: Attaching a marker to objects -
arakuta - 21.02.2015
There are two things you can attach to an object: Objects and Cameras.
You are free to obtain an object position using the function
GetObjectPos, and then create something like a MapIcon in the same pos.
Re: Attaching a marker to objects -
CalvinC - 21.02.2015
Can you be more specific what you mean with a marker?
You mean a checkpoint, pickup, or what?
Anyways, you could use a 1 sec or such repeating timer that uses
GetObjectPos, and sets the position of that "marker" to the object repeadetly.
Re: Attaching a marker to objects -
HeLiOn_PrImE - 21.02.2015
He refers to the red markers you see in game for checkpoints, not pick-ups. It's impossible, as far as I know.
Re: Attaching a marker to objects -
Smileys - 21.02.2015
if you want the red marker only, nothing else, then I have a solution:
There is an object that's the red marker, you could use it and attach the object to another object using
https://sampwiki.blast.hk/wiki/AttachObjectToObject
Re: Attaching a marker to objects -
Jimmy0wns - 22.02.2015
Thanks, I'll look what I can do.