![]() |
How do I remove music from an enemy being around? - 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: How do I remove music from an enemy being around? (/thread-10594.html) Pages:
1
2
|
How do I remove music from an enemy being around? - Statyk - 10-04-2011 Like the title says, I need to make an enemy spawn in a title sequence, and to add to the mystery effect, I have a monster spawn in the distance, have the character look at it, and pass out... But there's a problem... The enemy music plays and it kinda ruins the effect... Is there a way I can silence that music that plays when an enemy is around, WHILE the enemy is still around? RE: How do I remove music from an enemy being around? - Elven - 10-04-2011 Put other music and set priority way higher then the monster background music. Maybe try something like 100 to guarantee it! RE: How do I remove music from an enemy being around? - Statyk - 10-04-2011 (10-04-2011, 09:12 PM)Elven Wrote: Put other music and set priority way higher then the monster background music. Maybe try something like 100 to guarantee it!Wouldn't the monster music just play in the background? and I just want silence through the level. no music whatsoever. It gives a sense of desolation and loneliness. RE: How do I remove music from an enemy being around? - schmupper - 10-04-2011 (10-04-2011, 09:12 PM)Elven Wrote: Put other music and set priority way higher then the monster background music. Maybe try something like 100 to guarantee it!Seems lika a solution, but 0 is the highest priority and 1, 2, 3... lower. RE: How do I remove music from an enemy being around? - Elven - 10-04-2011 Then get music without any music (custom music) and add it in and make it loop. This way it should override the searching music and it should be quiet. Btw, monster music is background music ![]() RE: How do I remove music from an enemy being around? - Statyk - 10-04-2011 (10-04-2011, 09:16 PM)Elven Wrote: Then get music without any music (custom music) and add it in and make it loop. This way it should override the searching music and it should be quiet.So you're saying if I put: __________________________ void OnStart() { void PlayMusic("silentmusic.ogg", true, 0.1f, 0.01f, 0, true); } __________________________ That this will override the enemy's music and no music will be heard? RE: How do I remove music from an enemy being around? - Elven - 10-04-2011 No. But almost. There is bug in functions. It says that in music 0 is highest and 1 is lower then 0. IT is actually lie, 0 is lowest and higher it goes, bigger priority it has! (Tested many many times). So it should be more like: void OnStart() { void PlayMusic("silentmusic.ogg", true, 0.1f, 0.01f, 1000, true); } (With 1000, it overwrites enemy music for sure ![]() RE: How do I remove music from an enemy being around? - Statyk - 10-04-2011 (10-04-2011, 09:23 PM)Elven Wrote: No. But almost.Lol, alrighty =] I'll give it a shot. I'm glad this may possibly work. Worked like a charm!! Thank you SOO MUCH! =D Rep for both of joo. RE: How do I remove music from an enemy being around? - Elven - 10-04-2011 Let me know if something goes wrong ![]() RE: How do I remove music from an enemy being around? - Statyk - 10-04-2011 (10-04-2011, 09:38 PM)Elven Wrote: Let me know if something goes wrongNope, it went perfectly in the first shot. =] |