![]() |
Music Loops - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Music Loops (/thread-13926.html) |
Music Loops - wretic91 - 03-11-2012 Hi everyone, im having a little problem.. when i start a new game with my mod..i dont got any problems.. when i enter another map nothing happens.. but if i exit the game.. the music keeps playing.. if i enter another custom story.. it still keeps playing... now i tryed some codes.. but it didnt work.. anyone can help me out? here is the script. void OnStart() { PlayMusic("entrance_1.ogg", true, 80, 1, 0, false); } void OnLeave() { } what can i add so it wont continue when i go back to the menu! Wretic. RE: Music Loops - Mehis - 03-11-2012 Have you tried to stop the music when you leave the level? You can just do PlayMusic again on the second level... I didn't quite understand your problem. Lol RE: Music Loops - wretic91 - 03-11-2012 (03-11-2012, 04:47 PM)Mehis Wrote: Have you tried to stop the music when you leave the level? You can just do PlayMusic again on the second level...Done that .. my problem is.. when i exit a level.. for example.. i want to do a different Custom Story.. the music just keeps playing.. so have to know how i can stop it.. RE: Music Loops - JMFStorm - 03-12-2012 void OnLeave() { StopMusic(4, 0); } |