SA-MP Forums Archive
AttachObjectToVehicle Help - 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: AttachObjectToVehicle Help (/showthread.php?tid=400481)



AttachObjectToVehicle Help - INeed - 18.12.2012

I did that :

Код:
new objectid1, objectid2, objectid3, objectid4;
under GameModeInit

Код:
objectid1 = CreateObject(2937, 0,0,0,   0.00, 0.00, 0.00);
objectid2 = CreateObject(2937, 0,0,0,   0.00, 0.00, 0.00);
objectid3 = CreateObject(2937, 0,0,0,   0.00, 0.00, 0.00);
objectid4 = CreateObject(2937, 0,0,0,   0.00, 0.00, 0.00);
OnPlayerEnterVehicle

Код:
new Mav = GetVehicleModel(vehicleid);
if(Mav==487)
{
       	AttachObjectToVehicle(objectid1, Mav, 1.09, 1.88, -1.0, 0.0, 0.0, 0.0);
	AttachObjectToVehicle(objectid2, Mav, 1.09, -0.60, -1.0, 0.0, 0.0, 0.0);
	AttachObjectToVehicle(objectid3, Mav, -1.12, 1.88, -1.0, 0.0, 0.0, 0.0);
	AttachObjectToVehicle(objectid4, Mav, -1.12, -0.60, -1.0, 0.0, 0.0, 0.0);
}
but it doesnt work, the objects arent attached at the mavericks


Re: AttachObjectToVehicle Help - rbush12 - 18.12.2012

Are they attached to any other vehicle.

And try just

Код:
 AttachObjectToVehicle(2937, 487, 1.09, 1.88, -1.0, 0.0, 0.0, 0.0);