diff options
Diffstat (limited to 'durt/nodes/(-4626,7,-6638).lua')
-rw-r--r-- | durt/nodes/(-4626,7,-6638).lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/durt/nodes/(-4626,7,-6638).lua b/durt/nodes/(-4626,7,-6638).lua new file mode 100644 index 0000000..17a83e8 --- /dev/null +++ b/durt/nodes/(-4626,7,-6638).lua @@ -0,0 +1,23 @@ +local signal = POS(-4626,7,-6616) +if event.train and atc_arrow then + local rc = (get_rc() or "") + if rc:match("BFT_shunt_platforms") then + local control = {"B0WD2A0R"} + if rc:match("BFT_shunt_Platform1") then + set_route(signal,"SHUNT Platform 1") + control[2] = "S3CplS1" + elseif rc:match("BFT_shunt_Track2") then + set_route(signal,"SHUNT Track 2") + control[2] = "S3CplS1" + elseif rc:match("BFT_shunt_around_Track2") then + set_route(signal,"Around via Track2") + control[2] = "S4" + end + + if #control > 1 then + control[1] = table.concat(control,"") + end + atc_send(control[1]) + return + end +end
\ No newline at end of file |