Jump to content

Sector music/sound


Recommended Posts

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.

Edited by ReX

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...