In that case, boolean won’t be enough because it can only store two different states (on/off), so you should probably add an additional two integer variables which will store an information about latest and current state triggered.
You can set it to 1/2/3/4 in different states, then instead of the branch with SoundSequenceTriggered boolean you would check if the current state is different then last triggered state. Remember to set the current and latest state to 0 as the default in details panel.
like so:
explanation:
you are setting your last triggered state to some value (ie 1, if its true/true), then you check if its the same as the currently playing. at the begining current value will be 0, so it will be True and the sequene will be played, however after statritng the sequence, it will set the current value to 1 as well, so next tick, it won’t fire the alarm sequence again (becuase latest state == 1 and current state == 1). however, if it goes to different state (like true/false) then the last state will be changed to 2, so it will be true again (2 != 1) and alarm sequence will be triggered again.
Just wanted to add, this is getting more and more convuluted, so I would shrink the graph to smaller chunks and functions, but this won’t affect the functionality, only clarity, so I don’t want to bother you with that atm. but If you’d like to know how could we make it more readable and clean we can do it after it’s working as you want it to.
