diff options
Diffstat (limited to 'auto_yards/nodes/(-2029,19,733).lua')
-rw-r--r-- | auto_yards/nodes/(-2029,19,733).lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/auto_yards/nodes/(-2029,19,733).lua b/auto_yards/nodes/(-2029,19,733).lua index 2672033..f88c9f0 100644 --- a/auto_yards/nodes/(-2029,19,733).lua +++ b/auto_yards/nodes/(-2029,19,733).lua @@ -1,5 +1,14 @@ local yard_id = "ARC" if event.train then + if F.has_rc("ARC_YARD_REENTRY") then + -- loco will use S23-S approach track as headshunt and re-enter yard + -- RC will be removed by the headshunt controller (req to trigger it) + -- manually set the route here before ARS has a chance + set_route(POS(-2033,21,731),"Yard Reentry (LENGTH LIMIT)") + -- defer re-enabling ARS to ensure the route has been accepted, if not set + atc_send("S4D1A1") + return + end if F.has_rc(yard_id.."_LIGHT_EXIT") then F.remove_rc(yard_id.."_LIGHT_EXIT") atc_set_ars_disable(false) |