i was wondering if it was possible to have a script that is activated via turn on to also return a response variable, the reason it needs to be a script turn on is, i wanting to play an announcement on a bunch of speakers but using the normal script action it would play on one speaker wait till the first one was done, then play on another
#response_variable when using script turn on action
1 messages · Page 1 of 1 (latest)
if you want multiple things to happen at the same time then use a parallel block
i've tried that unfortunately i don't think it will work as part of the script i pass in which media players to play the announcement on and as far as im aware its not possible to dynamically add blocks to a parallel block
and has to be separate play actions because each speaker has its own desired volume for announcements and if its in quiet mode or not
have a script with multiple fields so you can select your media players
then inside the script have a paralel which has a bunch of sequences inside it which will all run at the same time.
each sequence has a check to see if it is set to play on the speaker its for and play (or not)
script.turn_on is non-blocking, so it's not possible. You have to call the script directly so it can block.