From 7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:56:59 +0200 Subject: State at 2022-04-21 --- Tyard/nodes/(-4047,12,-2655).lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Tyard/nodes/(-4047,12,-2655).lua') diff --git a/Tyard/nodes/(-4047,12,-2655).lua b/Tyard/nodes/(-4047,12,-2655).lua index 512ce80..91291bf 100644 --- a/Tyard/nodes/(-4047,12,-2655).lua +++ b/Tyard/nodes/(-4047,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 -- cgit v1.2.3