summaryrefslogtreecommitdiff
path: root/auto_yards/nodes/(-719,20,2475).lua
blob: 350ff88053aaf7e835a22810c808113269b3d909 (plain)
1
2
3
4
5
6
7
8
9
10
local yard_id = "CAN"
if event.train then
    if F.has_rc(yard_id.."_LIGHT_EXIT") or F.has_rc(yard_id.."_REENTER_YARD") then
        F.remove_rc(yard_id.."_LIGHT_EXIT")
        atc_set_ars_disable(false)
        atc_send("SM")
        return
    end
end
F.headshunt_exit(yard_id,true)