Music and Sounds Player
Music and sounds are important for different purposes, and it is possible to play sounds and music with the mod framework.
Including the necessary headers
In order to be able to use the Music Player and the Sounds Player, you must include the following header in your code.
After including the necessary header, you can use the Music Player and the Sound Player in your mod.
Playing Music
To play music in your mod, the Music.Play
function is available to be used after including the SoundPlayer header.
Stopping Music
To stop the current music that is playing, you can use the Music.Stop
function.
Changing the volume of the Music
To change the volume of the current music that is playing, you can use the Music.Volume
function.
Fading Music
To apply FadeIn and FadeOut music effects, you can use the Music.FadeIn
and the Music.FadeOut
functions.
Last updated