Posts: 9
Threads: 4
Joined: Apr 2022
Reputation:
0
27.04.2022, 00:49
(This post was last modified: 27.04.2022, 00:50 by achang.)
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!
Posts: 7782
Threads: 42
Joined: Jun 2015
Reputation:
448
Yes, each script runs as a separate OS process.
Posts: 9
Threads: 4
Joined: Apr 2022
Reputation:
0
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?
Posts: 7782
Threads: 42
Joined: Jun 2015
Reputation:
448
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.