diff options
author | cheapie <no-email-for-you@example.com> | 2025-04-03 20:15:24 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2025-04-03 20:15:24 -0500 |
commit | 4014345978b5fa3274b2746eff3bdca14468e532 (patch) | |
tree | 9e09adfe62badf6142644adbe62802e6a1d70378 /digilines.lua | |
parent | a93563d53e1c48a08ee14f37eecdea666b9202b0 (diff) | |
download | celevator-4014345978b5fa3274b2746eff3bdca14468e532.tar celevator-4014345978b5fa3274b2746eff3bdca14468e532.tar.gz celevator-4014345978b5fa3274b2746eff3bdca14468e532.tar.bz2 celevator-4014345978b5fa3274b2746eff3bdca14468e532.tar.xz celevator-4014345978b5fa3274b2746eff3bdca14468e532.zip |
Add proper, persistent swing car operation
Diffstat (limited to 'digilines.lua')
-rw-r--r-- | digilines.lua | 12 |
1 files changed, 12 insertions, 0 deletions
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 |