summaryrefslogtreecommitdiff
path: root/durt/nodes/(-3821,18,-4761).lua
blob: 64f31aefa77fffb01ebcc534077c12b719d68ebe (plain)
1
2
3
4
5
6
7
8
9
10
if (event.type == "train") then
    local rc = get_rc()
    if rc == "sfh_service" then
        set_autocouple()
        atc_send("B0")
        set_rc("sfh_shunt")
        interrupt(5, "proceed")
    else
        atc_send("B0WD3OCRSM")
        unset_autocouple()
        set_rc("sfh_service")
        set_line("SHBL")
        atc_set_text_outside("Sulfur Hills Branch Line -> Desert Junction")
    end
elseif (event.type == "int") then
    set_route("sfh-T1-headshunt", "Enter Headshunt")
    split_off_locomotive("B0OL")
    setstate("SFH-T2-S", "cr")
    atc_send("S2")
end