![]() |
Ambiencemusic help! - 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: Ambiencemusic help! (/thread-12711.html) |
Ambiencemusic help! - rallelol - 01-19-2012 Hello! I'm 97% done with my new custom story, "Big P's House". You should definitely check it out when it's released this friday (tomorrow) The only thing i need is ambiencemusic from the musicmap to be played at a certain map and not the other .map files, how do i make that happen? Thank you in advance! RE: Ambiencemusic help! - flamez3 - 01-19-2012 Just go into the level editor and click the sound icon on the side. Then load a ambiance sound and place it anywhere on the map. You might have to change the radius on it. Or you can go into the script and add void OnStart() { PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
}asMusicFile - the music to play + extension .ogg abLoop - determines whether a music track should loop afVolume - volume of the music afFadeTime - time in seconds until music reaches full volume alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc RE: Ambiencemusic help! - rallelol - 01-19-2012 (01-19-2012, 11:22 AM)flamez3 Wrote: Just go into the level editor and click the sound icon on the side. Then load a ambiance sound and place it anywhere on the map. You might have to change the radius on it. Or you can go into the script and addThank you ![]() |