Frictional Games Forum (read-only)
Few questions about putting music in my maps - 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: Few questions about putting music in my maps (/thread-12915.html)



Few questions about putting music in my maps - finScript - 01-28-2012

I put music in my map, but it wont stop, if Grunt or Brute comes around. It won't stop, if I exit the map to the main menu, but only if I close the whole game. What should I do?


RE: Few questions about putting music in my maps - Your Computer - 01-28-2012

How did you put music in your map?



RE: Few questions about putting music in my maps - finScript - 01-29-2012

Code:
void OnStart()
{
PlayMusic("10_amb.ogg", true, 100, 3, 0, false);
}



RE: Few questions about putting music in my maps - Your Computer - 01-29-2012

I was unable to duplicate your issue on my system.


RE: Few questions about putting music in my maps - Ninami - 02-06-2012

If you still have this problem, you should change the "0" to "1".

alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc


So if it's 0 then this music has the highest priority in the game, which means no other music will play.
Or change it to even lower priority than 1, maybe 4-5 just to be sure that "Background" music has lowest priority, in case a monster spawn for example.


RE: Few questions about putting music in my maps - Elven - 02-06-2012

Actually with music it is only thing what is wrong in wiki.

0 is highest priority with sounds. It only applies to sound.

In music it is opposite, bigger the number, bigger priority it has Smile