![]() |
[SCRIPT] Changing music mid level - 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: [SCRIPT] Changing music mid level (/thread-20272.html) |
Changing music mid level - serbusfish - 02-10-2013 The scenario; a scream is heard, the normal level music stops and goes silent, then when the player interacts with a script area a monster noise plays and different (tense) music plays, then once the tense music has finished the normal music comes back on. Now I have already done most of this, the only bit im having trouble with is making the normal music start playing again, here is my current script: Code: { As it stands if I try to add the level music in it will start playing at the same time as the tense music, is there anyway to delay it with a timer or something? RE: Changing music mid level - serbusfish - 02-11-2013 Anyone? Im sure ive seen this done in other CS so it has to be possible. RE: Changing music mid level - FlawlessHappiness - 02-11-2013 What you use is: Code: void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume); And Code: void StopMusic(float afFadeTime, int alPrio); |