Well its very strange but i forget how to let it play music xD
Even when i did it on my first custom story that was not even serious but just practicing.
If anyone could explain how to i would appreciate it
Here.
void PlayMusic
(string
& asMusicFile
, bool abLoop
, float afVolume
, float afFadeTime
, int alPrio
, bool abResume
);
Plays music.
asMusicFile - the music to play + extension .ogg
abLoop - determines whether a music track should loop
afVolume - volume of the music
afFadeTime - time in seconds until music reaches full volume
alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - lowest, 1 - higher, etc.
abResume - if true, playback will be continued from where the track stopped after the call to StopMusic(); if false, the track will be restarted.
(03-19-2013, 04:44 PM)Unearthlybrutal Wrote: [ -> ]Here.
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
Plays music.
asMusicFile - the music to play + extension .ogg
abLoop - determines whether a music track should loop
afVolume - volume of the music
afFadeTime - time in seconds until music reaches full volume
alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - lowest, 1 - higher, etc.
abResume - if true, playback will be continued from where the track stopped after the call to StopMusic(); if false, the track will be restarted.
But what should the Entity be just an AddEntityCallback?
void OnStart()
{
PlayMusic("name of the song .ogg", true, 1, 1, 1, true);
}