$begingroup$

Conditional Music Playback

What’s essential right here is that I understand how to change the monitor that is being performed again to a different if some situation is met within the scene. If doable I additionally wish to know the place to retailer the opposite tracks.

I seemed into the documentation and have but to discover a answer that enables me to for instance:

  • set the brand new monitor’s file path and play it or…
  • retailer the monitor names in perhaps an array and set them for playback within the script. (nonetheless requires one thing to alter the at present taking part in monitor)

How do I swap the tracks primarily based on any situation?

$endgroup$