StreamMusic

From the Oblivion ConstructionSet Wiki
Revision as of 12:30, 30 May 2006 by imported>JOG
Jump to navigation Jump to search

Syntax:

StreamMusic "<Filename>" 

Examples:

StreamMusic "data\music\special\success.mp3"
StreamMusic "LauncherMusic.wav"
StreamMusic "..\Morrowind\Data Files\Music\Special\morrowind title.mp3"
StreamMusic "C:\WINDOWS\Media\tada.wav"

Tells the game to start playing the music file. (The filename needs to be in quotes!)


Some Notes:

  • At the end of the file, a new random music will be chosen according to the current location.
  • Providing a filename that doesn't exist causes the game to restart the song that is currently playing.
  • StreamMusic will only work in cells with the music type set to either "Dungeon" or "Public" It doesn't work in cells with the "Default" setting. When used in such a cell, StreamMusic only restarts the current track.
  • StreamMusic will also not override combat music, the combat-music that is currently playing will be restarted, though.
  • The filename is relative to the Oblivion-folder it doesn't need to be in Data\Music.
  • The file-type isn't restricted to MP3. Any format that may be played by Windows Media Player can also be played by Oblivion (e.g .MID files).
  • The file-type isn't even restricted to music; if you start a video this way, Oblivion will minimize and play the video in an extra window. When the video ends, Oblivion will resume. (This is bound to make the game instable, so don't use it for anything but easter-eggs.)


See Also

PlaySound

PlaySound3D