blob: 23d7e854dffa5d5c61c22619a58dd4c6018a22f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
local signal = POS(-4128,16,-5754)
if event.train and atc_arrow then
for _,key in pairs({"DLG_shunt_platforms"}) do
local rc = (get_rc() or "")
if rc:match(key) then
atc_send("B0WD2A0RS3CplS1")
if rc:match("DLG_shunt_Platform1") then
set_route(signal,"SHUNT Platform 1")
return
elseif rc:match("DLG_shunt_Platform2") then
set_route(signal,"SHUNT Platform 2")
return
end
end
end
end
|