Im setting up an AI scenario where I have engine 1 (AI engine) patiently waiting on engine 2 (Player engine) to pass by and drop off empty cars. After the cars are dropped off, engine 2 leaves the area and hits a trigger which sets engine 1 off to fetch the empty cars, load them, and park them elsewhere. This all works great except,
if engine 3 passes by the trigger (without dropping off any cars), engine 1 gets the schedule to do it's thing. It will not because there are no cars waiting. THIS IS GOOD!
BUT
Now engine 1 has a schedule (set by engine 3 hitting the trigger) and nothing to do. Engine two comes along later, and drops off empty cars, but engine 1 will not move even after engine 2 has hit the trigger, I'm assuming (yes, I know) it's because of the "blown" schedule still sitting in it's queue.
I figure I need a command to remove the schedule from engine 1 that was loaded when engine 3 (or any other engine) passed by and does not drop off any cars.
Is there a command to remove (abandon?) the entire schedule that was queued up on engine 1 when engine 3 passed by and no cars were dropped off?
I'm thinking I need to add a "wait x minutes" and then an "abandon schedule" to the end of the string and if nothing happens, it will automatically abandon the bogus schedule.
Thanks!
if engine 3 passes by the trigger (without dropping off any cars), engine 1 gets the schedule to do it's thing. It will not because there are no cars waiting. THIS IS GOOD!
BUT
Now engine 1 has a schedule (set by engine 3 hitting the trigger) and nothing to do. Engine two comes along later, and drops off empty cars, but engine 1 will not move even after engine 2 has hit the trigger, I'm assuming (yes, I know) it's because of the "blown" schedule still sitting in it's queue.
I figure I need a command to remove the schedule from engine 1 that was loaded when engine 3 (or any other engine) passed by and does not drop off any cars.
Is there a command to remove (abandon?) the entire schedule that was queued up on engine 1 when engine 3 passed by and no cars were dropped off?
I'm thinking I need to add a "wait x minutes" and then an "abandon schedule" to the end of the string and if nothing happens, it will automatically abandon the bogus schedule.
Thanks!
Last edited: