AI trains question

Fineas10

Active member
Hello!

It may be an easy question, howver I wanted to ask for some tips. I am planning to add to my route a bunch of AI trainz, however I want them to have like a On/Off button. For example, I want to add 5 consists that run around the route, however I want them to stop at some point when they reach a sation. Or, I want the consists to start running only when I start them. The problem is that I want them to basically be starting and stopping, but all at once. This would have been easy with a session, however I have many ATLS (they need to stay on session layer), so I can't really do that. Any ideas?

Thank you!
 
I am not sure what you are trying to do, but there is no "on" & "off" button that I am aware of. I use a lot of different commands to start stop AI trains depending on the trains mission.
 
Stopping them all at once is much harder, but “wait for trigger” is a great way to start them when you want to.

Jamie
 
Stopping them all at once is much harder, but “wait for trigger” is a great way to start them when you want to.

Jamie
Yes, thank you for the tip. What I am trying to do @Lewiscc65 is to have like a day shift right. So I want to start them all and then when night comes, to stop them all.
 
Yes, thank you for the tip. What I am trying to do @Lewiscc65 is to have like a day shift right. So I want to start them all and then when night comes, to stop them all.

What you need is a rule that is based on a specific time to stop and another to run. You should be able to set these times. Maybe it's possible to add in a start time for each consist since that could be different. The stop time will then be based on so many hours afterwards and that could be calculated by the rule.

The trains that fall under that rule would need to be added to a table to control them because I'm not sure you want to apply this rule globally.

Before you ask, I'm not a programmer or scripter and only have big dreams. :)
 
It sounds like the best way to do what you want is to use a "wait for trigger" and then lay out their "day" through commands in the driver setup, and then a final "at 'x' Time" rule that ends their day... not that I'm very good with this sort of programing/scripting. As JCitron said there are ways to apply this across several trains, but like him -- I'm not a programmer or scripter and only have big dreams. :)
 
You can use Time Check, then put what you want the train to do as a child rule.
That's what I was thinking of, just didn't remember the rule... I like route building more than session design so I don't always remember the names of those rules.
 
Back
Top