cokacola Posted May 20, 2009 Posted May 20, 2009 I have been wondering, has anyone got a working method to connect train trailers to trains? I tried with attachTrailerToVehicle but no avail Also, any one know how to SPAWN a brown streak trailer?
Thehookerkiller01 Posted June 18, 2009 Posted June 18, 2009 http://development.mtasa.com/index.php? ... ehicle_IDs
DakiLLa Posted June 18, 2009 Posted June 18, 2009 i think its impossible to attach train trailers at this moment.. there is an issue on roadmap: #3463
Thehookerkiller01 Posted June 27, 2009 Posted June 27, 2009 And now? I think so with AttachElementToElement or something/...
Lordy Posted June 27, 2009 Posted June 27, 2009 If you had clicked on the link in his post, you'd see the issue is still new, eg this still hasn't been implemented. attachElementToElement could work, but it doesn't because trailers aren't attached like that. Like when a train turns, the wagon needs move differently than just stuck on a defined offset.
Maarten Posted April 2, 2017 Posted April 2, 2017 (edited) I have found the sollution: attachTrailerToVehicle(train, wagon) LocoMotive = createVehicle ( 537, 2865, 1340, 12.5 ) -- create a train(freight) setTimer( function() trailer1 = createVehicle ( 569, 2865, 1340, 12.5 ) -- create the first trailer attachTrailerToVehicle ( LocoMotive, trailer1 ) -- attach them trailer2 = createVehicle ( 590, 2865, 1340, 12.5 ) -- create the second trailer attachTrailerToVehicle ( trailer1, trailer2 ) -- attach them trailer3 = createVehicle ( 569, 2865, 1340, 12.5 ) -- create the third trailer attachTrailerToVehicle ( trailer2, trailer3 ) -- attach them end, 50, 1) I have created a train with 3 wagons. Edited April 2, 2017 by Maarten
_DrXenon Posted April 2, 2017 Posted April 2, 2017 2 hours ago, marty000123 said: this topic is 8 years old Lol dam, attaching trailers wasn't possible 8 years ago ;$$$$
Moderators HAZJ Posted April 3, 2017 Moderators Posted April 3, 2017 While clever, let's return this one to the graveyard, shall we? 2
Recommended Posts