diff options
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 |