s_ change music question

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
Apeirogon
Posts: 1606
Joined: Mon Jun 12, 2017 12:57 am

s_ change music question

Post by Apeirogon »

If I use s_change music without force bool set to true, like

Code: Select all

s_music change("song name");
instead of

Code: Select all

s_music change("song name", 0, true, true);
after end of a "song name" track default level music wont be played at all and insted there are be total silence.
Is it expected behavior?

Example
https://drive.google.com/file/d/1rFiFsJ ... xs6JR/view
I use a little bit to long music as default replacer, so you probably want to change it to something more shorter, like touhou.mp3
Spoiler:

Return to “Scripting”