ambient_music (Deprecated)

XashXT

ambient_music (Deprecated)

Turns the music for the map on and off. The following format for music tracks are supported: mp3, wma, ogg, xm, it and s3m.

Spawnflags

SF_START_ON 1 (initially turned on)
SF_LOOP 2 (the track is looped)

Option

message Path to the sound file.

Usage Details

  • This entity uses the third-party fmod.dll library for file playback. Therefore, savegames are not aware of the files it plays, and playback does not continue after a game load.
  • The Xash mod is designed to work whether or not this library is available, so using the library is not recommended. Instead, use target_cdaudio or trigger_cdaudio.