From 4cf3f6434de3b7db9e6c9932995ff4627f4cc3c2 Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Sun, 8 Aug 2021 16:32:46 +0200 Subject: [PATCH] Allow to pause the sequencer with a TechAge command Has the same effect as turning the sequencer off by hand. Use case: You use a sequencer in combination with a TA Signal Lamp to build a flashing warning light. You then want to turn this warning light on and off with a TechAge command. Using the "off" command would result in unsetting the "Run endless" checkbox. --- logic/sequencer.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/logic/sequencer.lua b/logic/sequencer.lua index b5abfb7..1ad89bc 100644 --- a/logic/sequencer.lua +++ b/logic/sequencer.lua @@ -268,6 +268,8 @@ techage.register_node({"techage:ta3_sequencer"}, { else nvm.endless = false end + elseif topic == "pause" then + stop_the_sequencer(pos) else return "unsupported" end