SA-MP Forums Archive
Help Spawning Railroad Train - 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: Help Spawning Railroad Train (/showthread.php?tid=354556)



Help Spawning Railroad Train - coolmark1995 - 27.06.2012

the statics are

Quote:

AddStaticVehicleEx(537,1681.90002441,-1954.00000000,15.10000038,90.00000000,3,-1,15); //Freight
AddStaticVehicleEx(537,1699.80004883,-1954.00000000,15.10000038,90.00000000,3,-1,15); //Freight
AddStaticVehicleEx(569,1717.69995117,-1953.80004883,15.10000038,90.00000000,-1,-1,15); //Freight Flat
AddStaticVehicleEx(569,1735.80004883,-1953.80004883,15.10000038,90.00000000,-1,-1,15); //Freight Flat
AddStaticVehicleEx(590,1753.69995117,-1953.90002441,15.10000038,90.00000000,-1,-1,15); //Freight Carriage
AddStaticVehicleEx(590,1753.69995117,-1953.90002441,15.10000038,90.00000000,-1,-1,15); //Freight Carriage

But I dont know how to combine them so when you drive train it stays together as one train


Re: Help Spawning Railroad Train - Babul - 27.06.2012

any locomotive spawned will get attached its 3 trailers automatically, it depends on the vehiclemodel id i guess.. and no, i never succeeded at attaching a train to another('s trailer) to make long trains...


Re: Help Spawning Railroad Train - coolmark1995 - 27.06.2012

someone please help me