07-25-2012, 08:02 AM
Lattely i have tried to put some custom musics in my custom story. It worked the first time i tried putting it in my test map, but when i tried to put it in my REAL map, nothing has happened. I thought it could be caused by wrong scripts and copied the test map scripts, but it still doesn't work. And now even the test map music isn't working. I'm using SUPER for the OGG conversion.
Here are the scripts:
////////////////////////////
// Run when entering map
void OnEnter()
{
PlayMusic("TheHole.ogg", true, 1, 4, 0, true);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
StopMusic(0, 0);
}
The music is located at custom_storiesq/mycustomstory/music and i'm sure it is a .ogg file.
Sorry for any english mistake.
Here are the scripts:
////////////////////////////
// Run when entering map
void OnEnter()
{
PlayMusic("TheHole.ogg", true, 1, 4, 0, true);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
StopMusic(0, 0);
}
The music is located at custom_storiesq/mycustomstory/music and i'm sure it is a .ogg file.
Sorry for any english mistake.