Frictional Games Forum (read-only)
How to stop grunt 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: How to stop grunt music? (/thread-18591.html)

Pages: 1 2


RE: How to stop grunt music? - brute360 - 10-03-2012

How about this:

PlayMusic("29_amb.ogg", true, 1, 0,1, 10, true);


RE: How to stop grunt music? - srobb - 10-04-2012

Didn't work, gives me an error when I try to reload the map.


RE: How to stop grunt music? - Adny - 10-04-2012

brute360's function has an extra argument (a float in this case) that will crash the game. Use this instead:

PlayMusic("29_amb", true, 1, 0, 1, true);

If you have any more errors in your map, I can assure you it's not due to the above function.

Hope that helped!


RE: How to stop grunt music? - srobb - 10-04-2012

That works fine, but the grunts music still plays.


RE: How to stop grunt music? - Robby - 10-04-2012

Try setting the priority to 0 if you haven't, or to 256. It's what I did and it always worked (no music from the grunt, just the terror sound).

I used this in my map:
PlayMusic("Restricted.ogg", true, 1, 1, 0, false);
And it works quite well. Neither the water monster's or the grunt's music ever played that way.

(10-03-2012, 06:55 AM)srobb Wrote: Still doesn't get rid of the music.
Any ideas?
Select the entity you have problems with, then use the model that has those variables mentioned set to blank, and then load that.

If it still doesn't work, dunno what to tell you.


RE: How to stop grunt music? - srobb - 10-05-2012

Worked.
Thank you again! Smile