diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:37 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:37 +0200 |
commit | f3da24b214b3337ad63ebd885da29d5b789d4738 (patch) | |
tree | 48fa662ea867d097fdf4fad4b3dc7c8310e8a80a /durt | |
parent | e455ab51a3bdb8cca33bf0a3906575aa9177d8df (diff) | |
download | luaatc_envs-f3da24b214b3337ad63ebd885da29d5b789d4738.tar.gz luaatc_envs-f3da24b214b3337ad63ebd885da29d5b789d4738.tar.bz2 luaatc_envs-f3da24b214b3337ad63ebd885da29d5b789d4738.zip |
State at 2020-12-14
Diffstat (limited to 'durt')
-rw-r--r-- | durt/nodes/(-2084,9,918).lua | 1 | ||||
-rw-r--r-- | durt/nodes/(-2211,8,902).lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/durt/nodes/(-2084,9,918).lua b/durt/nodes/(-2084,9,918).lua new file mode 100644 index 0000000..ae8e76f --- /dev/null +++ b/durt/nodes/(-2084,9,918).lua @@ -0,0 +1 @@ +if event.type=="digiline" then
if event.channel ~= "trainctl" then return end
if event.msg == "send" then
setstate(POS(-2085,11,918),"green")
if atc_id and atc_arrow then
atc_send("B5S5")
elseif atc_id and atc_arrow == false then
atc_send("B0S0WRS5")
end
interrupt(10,"clear_signal")
return
elseif event.msg == "open" then
setstate(POS(-2085,11,918),"green")
return
elseif event.msg == "close" then
setstate(POS(-2085,11,918),"red")
return
end
return
end
if event.type=="int" then
if event.msg=="clear_signal" then
setstate(POS(-2085,11,918),"red")
end
return
end
\ No newline at end of file diff --git a/durt/nodes/(-2211,8,902).lua b/durt/nodes/(-2211,8,902).lua new file mode 100644 index 0000000..7e11761 --- /dev/null +++ b/durt/nodes/(-2211,8,902).lua @@ -0,0 +1 @@ +if event.type=="digiline" then
if event.channel ~= "trainctl" then return end
if event.msg == "send" then
if atc_id and atc_arrow then
atc_send("S0WRS5")
elseif atc_id and atc_arrow == false then
atc_send("S5")
end
end
end
\ No newline at end of file |