Knowledge Base - Music Specials

Music Specials


ZDoom has some new specials that control the music of a level. This is great news as the ambience of a level is greatly enhanced by the correct music. Note that to use these specials you must have the latest version of ACC.EXE.

  • setmusic (str song, opt int pattern);
  • localsetmusic (str song, opt int pattern);

Setmusic changes the music in the game. Localsetmusic works the same, but only effects the player who activated the script. If song is a MOD, then pattern specifies the pattern in the song to start playing at. Otherwise pattern is ignored. Pattern is optional, so you don't need to specify it if you aren't using a MOD.

Sources

ZDoom reference by Marisa Heit.

Back