Activating TrackTrain by Team Cap

Discussion in 'Mapping Questions & Discussion' started by MegapiemanPHD, Jul 18, 2012.

  1. MegapiemanPHD

    aa MegapiemanPHD Doctorate in Deliciousness

    Messages:
    891
    Positive Ratings:
    438
    Right now I'm working on a KOTH map and my hope is to have it set up so at the start of the map both trainA and trainB are stopped. If Blue caps the point TrainA starts moving and will pass from one side of the map to the other, then teleport back to the original path and pass through the map again. If Red Caps TrainA finishes its movement through the map but won't start it again and TrainB's movement starts. I have a train set up and it goes through the map fine and I can set it up so that TrainA starts and stops depending upon who owns the Cap. What I can't figure out is how to make TrainA finish it's movement so that it doesn't stop its motion while in playable areas of the map but instead finishes going across the map, but then waits till Blue owns the point again. TrainB will be exactly the same but be controlled by Red capping the point. If anyone could help with this I would be grateful.
     
  2. Idolon

    aa Idolon the worst admin

    Messages:
    1,519
    Positive Ratings:
    4,332
    Instead of telling the trains to stop, set up a system to make each train check if it should stop on OnPass from the first path_track.
     
  3. MegapiemanPHD

    aa MegapiemanPHD Doctorate in Deliciousness

    Messages:
    891
    Positive Ratings:
    438
    That is what I'm asking how to do. I apologies if my first post was confusing.
     
  4. henke37

    aa henke37

    Messages:
    1,878
    Positive Ratings:
    442
    Add a new logic_relay, call it loopLogic.
    Add a connection from the path_track for the OnPass output to the Trigger input of the relay.
    Add a connection from the relay to the tracktrain to teleport the train.
    Then add logic to enable/disable the relay as needed.