[ad_1]
Recreation Improvement Stack Change is a query and reply web site for skilled and unbiased sport builders. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
One of the best solutions are voted up and rise to the highest
Requested
Considered
700 occasions
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$
Set_stream(monitor)
the place monitor is the audiostream object. It may be accessed by exporting the worth with
export (AudioStream) var monitor
After which deciding on the monitor within the inspector.
$endgroup$
1
You could log in to reply this query.
Not the reply you are in search of? Browse different questions tagged .
default
[ad_2]