![]() |
Resident script Activated by an object - 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: Resident script Activated by an object (/showthread.php?tid=6026) |
Resident script Activated by an object - Chandrias - 17.06.2025 Is it possible to create a Resident script, that will be activated or not based on an event? (i.e. based on the value of a 1-bit object) RE: Resident script Activated by an object - forsterm - 17.06.2025 https://kb.logicmachine.net/libraries/lua/#script-control RE: Resident script Activated by an object - admin - 17.06.2025 Describe your task. You might not need a resident script at all. Event script with execution mode set to last instance only might be enough. RE: Resident script Activated by an object - Chandrias - 17.06.2025 (11 hours ago)admin Wrote: Describe your task. You might not need a resident script at all. Event script with execution mode set to last instance only might be enough. I need a script to run every 1 minute, in order to adjust a room temperature. This script I need to activate/deactivate it using an object. When I activate the object (1), I need the script to run, while when I deactivate the object(0), I need to stop the script. RE: Resident script Activated by an object - Chandrias - 17.06.2025 I used a Resident script for the function. And that I Enable/Disable it using an Event script. Than works just fine. Let me know if there is a better way of doing that. |