Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
theycallmefog

Sector music/sound

Recommended Posts

Hi!

 

Is it possible to make a sector (or if i cross a line) play different music? Like in Doom2016. I did not found any tutorial about this.

Thanks!

Share this post


Link to post

To follow up on what Dark Pulse said, refer to this article in the wiki.

 

In the example on the wiki page the script changes the music at the beginning of the boss battle, checks to see if the boss is still alive, and changes the music back when the boss is killed.

 

You can simplify the script for your use. It could be as straightforward as:

Script 100 (void) // Change Music
{
   SetMusic("NewMusic", 0);
}

You would assign Script 100 to the linedef that the player crosses, and flag is as repeatable or single-use only, depending on what effect you're going for. Of course, if you have custom music you'd need to define the music via a SNDINFO lump.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×