Runes of Magic Wiki
Advertisement

Plays a specified sound in the game, given the file system path to the audio file.

PlaySoundByPath(Path);

Parameters[ | ]

Arguments[ | ]

Path
string - The file system path to the audio file to play.

Returns[ | ]

nil
void - A method call without return value.

Example[ | ]

PlaySoundByPath("music/rom/title.mp3")

or

PlaySoundByPath("music\\rom\\title.mp3")

Notes[ | ]

  • The path given is relative to the path where "Runes of Magic.exe" is located. For example: /Interface/Addons/MusicPlayer/music.mp3
  • Poorly formatted sound files can make the game crash;

Related Functions[ | ]

Advertisement