[LVL ED] Background 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [LVL ED] Background music? (/thread-14520.html) |
Background music? - kiruclanz - 04-06-2012 Anyone know how to put in background music into a level of a custom story once you spawn? I'm new at this so don't just give me the line of code tell me where I'm supposed to put it and stuff lol RE: Background music? - Strembitsky - 04-06-2012 PlayMusic. RE: Background music? - kiruclanz - 04-06-2012 (04-06-2012, 02:19 AM)Strembitsky Wrote: PlayMusic.How do i make it specify which file? RE: Background music? - Your Computer - 04-06-2012 (04-06-2012, 02:29 AM)kiruclanz Wrote: How do i make it specify which file? http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#sounds_music RE: Background music? - JetlinerX - 04-06-2012 My best help: PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume); asMusicFile - the music to play + extension .ogg (MUST BE IN QUOTES) abLoop - determines whether a music track should loop (True - Yes, False - No) afVolume - volume of the music (No idea, I usually set mine to 100) afFadeTime - time in seconds until music reaches full volume (Lower number, faster fade in) alPrio - priority of the music. only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc RE: Background music? - jessehmusic - 04-06-2012 (04-06-2012, 02:16 AM)kiruclanz Wrote: Anyone know how to put in background music into a level of a custom story once you spawn? I'm new at this so don't just give me the line of code tell me where I'm supposed to put it and stuff lolPlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume); |