Train Connecting to Cars

  • Site Migration: See bugs? Report them here. Want something changed or have an idea? Suggest it here.

FishyUberMuffin

War Paints Everywhere
Apr 26, 2015
977
How can i connect the train cars to follow the main train? I am looking at this Train Tutorial and it doesn't say how to connect the cars up to the train.
 

Crowbar

Spiritual preprocessor
aa
Dec 19, 2015
1,460
Set up multiple func_tracktrains and send them speed changing outputs similatenously (Might use the same name for that)
 

SnickerPuffs

(*single chuckle*)
aa
Apr 10, 2014
1,231
I just give the other cars the same name as the engine and stretch the func-tracktrain over the new cars. They look fine in-game, but when they're not moving they spawn inside of each other.
 

Arceus

The equine creator everyone takes for granted.
Apr 19, 2016
42
I recently solved this problem in my newest map, Terminal.

Set the train cars' parent to the func_train entity.

Remember, trains must face to the right in Hammer.

The func_tracktrain does not have to stretch over the additional cars.
 

henke37

aa
Sep 23, 2011
2,075
The issue is when the train follows a curved track. Few methods work then.
 

FishyUberMuffin

War Paints Everywhere
Apr 26, 2015
977

henke37

aa
Sep 23, 2011
2,075
Then just make all of the brushes for all of the vagons, including the locomotive, part of the func_tracktrain. And parent all of the props to the tracktrain.
 

BigfootBeto

Party Time 2.0!
aa
Jun 8, 2016
488
Just pretend all the cars are one single prop. If they're all parented to the same func_track_train entity it should be fine.
 

Arceus

The equine creator everyone takes for granted.
Apr 19, 2016
42
I did something similar to what BigfootBeto said.
If you want, I can show you pictures and explain further, or you can download my vmf to see for yourself.