@Lindon Yes I get that, but the initial problem is that it doesn't work in the DAW when it is exported without a sound generator like the audio loop player.
@d-healey You're correct and this sounds to me like the cleanest solution. I really want to dive into broadcasters and rethink my scripting approach soon since they offer so much.
since I am very new to writing own code and commands
Have you gone through my scripting 101 video? If not, start there. A general knowledge of scripting will get you much further in the long term than narrow snippets.
Not sure if that is a good example for an introduction to broadcasters though as it's a little bit more complex than just a hello world example that listens to a single event - there are two broadcasters and one is changing the source event of the other.