diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:56:27 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:56:27 +0200 |
commit | 679158c7e7ddc87a73e3c8974cb3080bf9f69969 (patch) | |
tree | 063b9e8f75be59a85d952d0c15074e6c3d0df66f /durt/nodes/(-2044,21,869).lua | |
parent | e34f1bd16618a448527ee1c9178c8cee04f8e3df (diff) | |
download | luaatc_envs-679158c7e7ddc87a73e3c8974cb3080bf9f69969.tar.gz luaatc_envs-679158c7e7ddc87a73e3c8974cb3080bf9f69969.tar.bz2 luaatc_envs-679158c7e7ddc87a73e3c8974cb3080bf9f69969.zip |
State at 2022-03-09
Diffstat (limited to 'durt/nodes/(-2044,21,869).lua')
-rw-r--r-- | durt/nodes/(-2044,21,869).lua | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/durt/nodes/(-2044,21,869).lua b/durt/nodes/(-2044,21,869).lua index 8219fbc..f5618ac 100644 --- a/durt/nodes/(-2044,21,869).lua +++ b/durt/nodes/(-2044,21,869).lua @@ -1,17 +1,21 @@ -if event.train and atc_arrow then - local rc = get_rc() or "" - if rc:match("ARC_Station_Reverse") then - schedule_in(";01",atc_id) - return +if event.train then + if atc_arrow == true then + if F.has_rc("ARC_Station_Reverse") then + atc_send("S2") + schedule_in(";01",atc_id) + print("Train's id: " ..atc_id) + return + end end end if event.schedule then - if event.msg == atc_id then + print("Msg id: "..event.msg) + if atc_id and event.msg == atc_id then schedule_in(";01",event.msg) return else - atc_send_to_train(event.msg,"B0WRS3") + atc_send_to_train(event.msg,"S0WRS3") return end end
\ No newline at end of file |