I have only loop so far but I want the train carriages to follow eachothers like a train in single player.
local, loco = createVehicle ( 537, 1467, -1532, 10 )
for k=1, 5 do
local carriage = createVehicle ( 590, 1467+(k*18), -1532, 10 )
attachTrailerToVehicle( carriage, loco )
end
Hi community!
So I have created train by adding carriages and locomotive near eachothers but how do I attach them to eachothers and make them follow eachother, how can I be sure that they stay in the same track? Is there any function for this, attachTrailerToVehicle wont work. Please help.