Event scripts in parallel - 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: Event scripts in parallel (/showthread.php?tid=4022) |
Event scripts in parallel - achang - 27.04.2022 Hello, This might be a very basic question, but when there are multiple event scripts attached to separate objects/tags, are those event scripts processed in parallel? Thanks in advance! RE: Event scripts in parallel - admin - 27.04.2022 Yes, each script runs as a separate OS process. RE: Event scripts in parallel - achang - 28.04.2022 Thanks for your reply! I'm glad we're on the same page. I wanted to make a single event script attached to multiple objects with the same tag run in parallel, but figured that wasn't possible. Therefore I tried creating separate event scripts for each object instead, using common functions since the core logic of the event script is basically the same and that turned out to run in parallel as you mentioned. However, it's honestly not a clean way to do it since there would be equal number of objects and event scripts, and my application will have a good number of objects. Is there a better, cleaner way to do something similar? RE: Event scripts in parallel - admin - 28.04.2022 You can make a single script that is executed by multiple objects that have a common tag. Check Error log for any errors that caused the script to fail. |