Train Connecting to Cars

Discussion in 'Mapping Questions & Discussion' started by FishyUberMuffin, Aug 26, 2017.

  1. FishyUberMuffin

    FishyUberMuffin War Paints Everywhere

    Messages:
    935
    Positive Ratings:
    154
    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.
     
  2. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,429
    Positive Ratings:
    1,173
    Set up multiple func_tracktrains and send them speed changing outputs similatenously (Might use the same name for that)
     
  3. HolySnickerPuffs

    aa HolySnickerPuffs Bad at TF2, Loves Mapping For TF2

    Messages:
    888
    Positive Ratings:
    1,204
    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.
     
  4. Arceus

    Arceus The equine creator everyone takes for granted.

    Messages:
    43
    Positive Ratings:
    6
    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.
     
    • Agree Agree x 1
  5. henke37

    aa henke37

    Messages:
    1,879
    Positive Ratings:
    442
    The issue is when the train follows a curved track. Few methods work then.
     
  6. FishyUberMuffin

    FishyUberMuffin War Paints Everywhere

    Messages:
    935
    Positive Ratings:
    154
    My track doesn't curve
     
    • Like Like x 2
  7. henke37

    aa henke37

    Messages:
    1,879
    Positive Ratings:
    442
    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.
     
    • Thanks Thanks x 1
    • Agree Agree x 1
  8. BigfootBeto

    aa BigfootBeto Too obsessed with perfection

    Messages:
    370
    Positive Ratings:
    567
    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.
     
    • Agree Agree x 3
    • Thanks Thanks x 1
  9. Arceus

    Arceus The equine creator everyone takes for granted.

    Messages:
    43
    Positive Ratings:
    6
    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.
     
Tags: