SA-MP Forums Archive
Attach objects to a vehicle - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Attach objects to a vehicle (/showthread.php?tid=140208)



Attach objects to a vehicle - ducati09 - 08.04.2010

I want to add these 4 cages around the car I am in, with a command.

How can I do this?

Images



Positions

Код:
971,902.623229,-1221.011962,19.728576,0.000000,0.000000,0.000000,cage1
971,902.634582,-1218.067993,19.617485,0.000000,0.000000,0.000000,cage2
971,903.935607,-1219.144653,18.235996,58.599998,0.099999,269.217529,cage3
971,899.215576,-1219.004394,19.585285,0.000000,0.000000,273.580871,cage4
I looked it up and I have to use a timer? and constantly update the position of the cages around my car correct?


Re: Attach objects to a vehicle - [HiC]TheKiller - 08.04.2010

I think the best idea is to attach the object to the player with a specific offset.