diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:57 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:57 +0200 |
commit | d37b50d795cb1505258def029c3ab5cb5cf9b308 (patch) | |
tree | 0fa92a605d3a850804d2b07bc9ad5aacafe9f98a /durt/nodes/(-1516,11,-2590).lua | |
parent | a744ca22d91ea89c151ba678c0d5daed2fe35611 (diff) | |
download | luaatc_envs-d37b50d795cb1505258def029c3ab5cb5cf9b308.tar.gz luaatc_envs-d37b50d795cb1505258def029c3ab5cb5cf9b308.tar.bz2 luaatc_envs-d37b50d795cb1505258def029c3ab5cb5cf9b308.zip |
State at 2021-05-10
Diffstat (limited to 'durt/nodes/(-1516,11,-2590).lua')
-rw-r--r-- | durt/nodes/(-1516,11,-2590).lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/durt/nodes/(-1516,11,-2590).lua b/durt/nodes/(-1516,11,-2590).lua new file mode 100644 index 0000000..7352032 --- /dev/null +++ b/durt/nodes/(-1516,11,-2590).lua @@ -0,0 +1 @@ +if event.train and atc_arrow then
if S.yards.S27.shunt_type == false then
--reverse around loop. player not present to supervise autocouple operation
local rc = get_rc() or ""
local action = 0
local rc_list = {}
for token in rc:gmatch("[^%s]+") do
if token=="S27_LOOP" then
action = 1
else
table.insert(rc_list,token)
end
end
if action == 0 then
rc = rc.." S27_LOOP"
else
rc = table.concat(rc_list," ").." S27_EXIT"
end
set_rc(rc)
atc_set_ars_disable(false)
atc_send("B0WRD1S3")
return
end
end
\ No newline at end of file |