Multiple songs in the same map: is it possible?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

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
DuoDynamo2
Posts: 4
Joined: Mon Dec 05, 2022 12:49 pm

Multiple songs in the same map: is it possible?

Post by DuoDynamo2 »

I was wondering if it's possible to have different parts of the same map play different songs.

For example, MAP30 from Doom II (Icon of Sin) has two main sectors:

Sector A: The room where the player first spawns, with all the weapons, ammo, the megasphere and the teleporter.
Sector B: The main room housing the Icon of Sin itself.

Is it possible to assign a different song for each of these sectors?

Thanks in advance.
Gez
 
 
Posts: 17849
Joined: Fri Jul 06, 2007 3:22 pm

Re: Multiple songs in the same map: is it possible?

Post by Gez »

You can use a script that calls SetMusic (or LocalSetMusic) or use MUSINFO + music changers.
User avatar
Darkcrafter
Posts: 570
Joined: Sat Sep 23, 2017 8:42 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support

Re: Multiple songs in the same map: is it possible?

Post by Darkcrafter »

check out my hell reanaissance mapset, it has exactly what you want via setmusic scripts, the easiest example starts at map08 when you cross the first gate.

viewtopic.php?t=76565

Return to “Scripting”