Logic Machine Forum
Countdown timer - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Countdown timer (/showthread.php?tid=4436)



Countdown timer - nmedalacabeza - 10.12.2022

Translation from Spanish to English Google

Hi, I'm new to Lua programming and I've been looking all over the forum for a countdown timer that keeps time once the event stops and then reactivates that time once the event is triggered again.
The need is for a generator, whose level marks the remaining time that we have left of operation, would it be possible?
with event addresses, level, total time, elapsed time and maximum time with a full tank, and thus calculate when the diesel is being consumed, mark that time.
Thank you


RE: Countdown timer - admin - 12.12.2022

This thread has similar examples: https://forum.logicmachine.net/showthread.php?tid=3769