diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:56:59 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:56:59 +0200 |
commit | 7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400 (patch) | |
tree | ec8bd4ab176ee2874fec6a83ba85db7125e426fd /Tyard/nodes/(-4035,12,-2731).lua | |
parent | 4590cc6504d625404f0af394da41bb71fc2dec45 (diff) | |
download | luaatc_envs-7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400.tar.gz luaatc_envs-7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400.tar.bz2 luaatc_envs-7ce1ee32c9dd199eef6212c4f601ac4aaf3ce400.zip |
State at 2022-04-21
Diffstat (limited to 'Tyard/nodes/(-4035,12,-2731).lua')
-rw-r--r-- | Tyard/nodes/(-4035,12,-2731).lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tyard/nodes/(-4035,12,-2731).lua b/Tyard/nodes/(-4035,12,-2731).lua index 12b9ecf..5c809b6 100644 --- a/Tyard/nodes/(-4035,12,-2731).lua +++ b/Tyard/nodes/(-4035,12,-2731).lua @@ -1,6 +1,6 @@ --EOL code local this_dir = false -- 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 |