SA-MP Forums Archive
Attaching Object to 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)
+--- Thread: Attaching Object to Vehicle (/showthread.php?tid=586724)



Attaching Object to Vehicle - Jigsaw123 - 24.08.2015

I've tried attaching an object to a vehicle, and in game it doesn't work?

Код:
	new SirenC;
    SirenC = CreateObject(19419, 10.0, 10.0, 10.0, 0, 0, 0);
    AttachObjectToVehicle(SirenC, SDCar[0], -0.039999, -0.469999, 0.669999, 0.000000, 0.000000, 0.000000);
    AttachObjectToVehicle(SirenC, SDCar[1], -0.039999, -0.469999, 0.669999, 0.000000, 0.000000, 0.000000);
    AttachObjectToVehicle(SirenC, SDCar[2], -0.039999, -0.469999, 0.69999, 0.000000, 0.000000, 0.000000);
    AttachObjectToVehicle(SirenC, SDCar[3], -0.039999, -0.469999, 0.669999, 0.000000, 0.000000, 0.000000);
    AttachObjectToVehicle(SirenC, SDCar[4], -0.039999, -0.469999, 0.669999, 0.000000, 0.000000, 0.000000);
Anyone can help?

Thanks!


Re: Attaching Object to Vehicle - Vince - 24.08.2015

You can't attach one object to five different vehicles. It doesn't create instances of itself. If you have five vehicle you need five objects.


Re: Attaching Object to Vehicle - Jigsaw123 - 24.08.2015

Nevermind, I fixed it, but thanks anyways !