diff options
Diffstat (limited to 'durt/nodes/(-4623,7,-6597).lua')
-rw-r--r-- | durt/nodes/(-4623,7,-6597).lua | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/durt/nodes/(-4623,7,-6597).lua b/durt/nodes/(-4623,7,-6597).lua index 4095975..649ba8b 100644 --- a/durt/nodes/(-4623,7,-6597).lua +++ b/durt/nodes/(-4623,7,-6597).lua @@ -1,6 +1,15 @@ local split_indicator = POS(-4630,8,-6589) __approach_callback_mode = 1 +local shunt_actions = { + "BFT_Siding_B", + "BFT_shunt_platforms", + "BFT_shunt_around_Track2", + "BFT_Mainline_Headshunt", + "BFT_rejoin_from_north", + "BFT_Platform1" +} + if event.approach and not event.has_entered then if F.has_rc("BFT_around_test") == false then return end @@ -13,14 +22,14 @@ if event.train then if not atc_arrow then return end local state = getstate(split_indicator) if state == "off" then - split_off_locomotive("A0B0OL",1) + split_off_locomotive("A0B0OR",1) atc_send("S3") atc_set_ars_disable(false) setstate(split_indicator,"on") - set_rc((get_rc() or "").." BFT_Siding_B BFT_shunt_around_Track2 BFT_Mainline_Headshunt BFT_Platform1") + set_rc(F.get_rc_safe() .. table.concat(shunt_actions," ")) elseif state == "on" then - atc_send("B0WROCA1D2S4D10SM") + atc_send("I>1B0ES0;WROCA1D2S4D10SM") setstate(split_indicator,"off") - F.remove_rc({"BFT_Siding_B","BFT_shunt_around_Track2","BFT_Mainline_Headshunt","BFT_Platform1"}) + F.remove_rc(shunt_actions) end end
\ No newline at end of file |