cokacola Posted May 20, 2009 Share 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? Link to comment
Thehookerkiller01 Posted June 18, 2009 Share Posted June 18, 2009 http://development.mtasa.com/index.php? ... ehicle_IDs Link to comment
DakiLLa Posted June 18, 2009 Share Posted June 18, 2009 i think its impossible to attach train trailers at this moment.. there is an issue on roadmap: #3463 Link to comment
Thehookerkiller01 Posted June 27, 2009 Share Posted June 27, 2009 And now? I think so with AttachElementToElement or something/... Link to comment
Lordy Posted June 27, 2009 Share 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. Link to comment
Maarten Posted April 2, 2017 Share 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 Link to comment
marty000123 Posted April 2, 2017 Share Posted April 2, 2017 this topic is 8 years old Link to comment
_DrXenon Posted April 2, 2017 Share 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 ;$$$$ Link to comment
Moderators HAZJ Posted April 3, 2017 Moderators Share Posted April 3, 2017 While clever, let's return this one to the graveyard, shall we? 2 Link to comment
Recommended Posts