diff options
Diffstat (limited to 'durt/nodes/(-2213,8,898).lua')
-rw-r--r-- | durt/nodes/(-2213,8,898).lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/durt/nodes/(-2213,8,898).lua b/durt/nodes/(-2213,8,898).lua index 3d93bd0..0be631f 100644 --- a/durt/nodes/(-2213,8,898).lua +++ b/durt/nodes/(-2213,8,898).lua @@ -1 +1,13 @@ -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("S0WRS4")
elseif atc_id and atc_arrow == false then
atc_send("S4")
end
end
end
\ No newline at end of file +if event.type=="digiline" then + if event.channel ~= "trainctl" then return end + if not atc_id then return end + local cmd = "I+S0WR;S4" + if event.msg == "send" then + atc_send(cmd) + return + end + if event.msg == "send_cpl" then + atc_send(cmd.."CplWS0WRS4") + return + end +end
\ No newline at end of file |