Stop Music ? - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Stop Music ? (/thread-6471.html) |
Stop Music ? - Janni1234 - 02-04-2011 How can i stop music on an area and play new music? RE: Stop Music ? - Robby - 02-04-2011 To stop music, you need a script. An example I used: Code: StopMusic(3.0f, 100); Code: PlayMusic("18_amb", true, 1, 1, 1, true); These two codes are an example And a normal script: Code: AddEntityCollideCallback("Player", "ScriptArea_1", "Whatever", true, 1); Make sure the Script Area you want the player to collide with is ScriptArea_1, just like in the AddEntityCollideCallback. Hope it works. That is the way I do it with music and works fine. RE: Stop Music ? - Janni1234 - 02-04-2011 Okay thanks! |