diff options
Diffstat (limited to 'Tyard/nodes/(-4035,12,-2655).lua')
-rw-r--r-- | Tyard/nodes/(-4035,12,-2655).lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tyard/nodes/(-4035,12,-2655).lua b/Tyard/nodes/(-4035,12,-2655).lua index 512ce80..91291bf 100644 --- a/Tyard/nodes/(-4035,12,-2655).lua +++ b/Tyard/nodes/(-4035,12,-2655).lua @@ -1,6 +1,6 @@ --EOL code local this_dir = true -- true = F.dir arrow points north -local error_indicator = POS(-4025,13,-2671) + if F.yard_active() then if atc_arrow then if F.dir() == this_dir then --train has bounced and needs to leave the rake or depart with it @@ -11,6 +11,7 @@ if F.yard_active() then split_off_locomotive("A0B0") F.add_rc({"TY_PICKUP"}) end + F.add_rc({"TY_HEADSHUNT"}) else --train needs to bounce atc_send("B0WRD1S4") end @@ -24,7 +25,7 @@ if F.yard_active() then F.remove_rc(rm) else --this should never come into play as it means the train has entered from the wrong end somehow atc_send("BBOL") --stop the train and open the doors (if available) to signify assistance required - setstate(error_indicator,"on") + F.error(true) end end end
\ No newline at end of file |