From 4014345978b5fa3274b2746eff3bdca14468e532 Mon Sep 17 00:00:00 2001 From: cheapie Date: Thu, 3 Apr 2025 20:15:24 -0500 Subject: Add proper, persistent swing car operation --- digilines.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'digilines.lua') diff --git a/digilines.lua b/digilines.lua index 4b30345..8f5c220 100644 --- a/digilines.lua +++ b/digilines.lua @@ -158,6 +158,18 @@ local function handledigilines(pos,node,channel,msg) celevator.controller.run(carinfo.controllerpos,{ type = "mrsmoke", }) + elseif msg.command == "swingon" then + celevator.controller.run(carinfo.controllerpos,{ + type = "remotemsg", + channel = "swing", + msg = true, + }) + elseif msg.command == "swingoff" then + celevator.controller.run(carinfo.controllerpos,{ + type = "remotemsg", + channel = "swing", + msg = false, + }) end end end -- cgit v1.2.3