Attaching Object to Vehicle
#1

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!
Reply
#2

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.
Reply
#3

Nevermind, I fixed it, but thanks anyways !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)