Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Note problem
DamnNoHtml Offline
Senior Member

Posts: 469
Threads: 34
Joined: Sep 2010
Reputation: 16
#2
RE: Note problem

The Brute and Grunt music is played at priority 0 (The highest priority, meaning it will play over any and all other music).

So, add an interact callback that stops the music at priority 0.

That being said, the music really isn't that loud so you should look into some sound editing software to raise the volume of the voice.

Here is what the code should look like:

void OnStart()
{
       SetEntityPlayerInteractCallback("inGameNoteName", "StopTheme", true);
       //Your other OnStart functions, callbacks, etc
}

//Then put this anywhere else, outside of all other functions
void StopTheme(string &in entity)
{
       StopMusic(1.0, 0);
}

Creator of Wake, Through the Portal, Insomnia, and Cycles What to do with HPL3....
06-27-2011, 07:43 PM
Find


Messages In This Thread
Note problem - by TheDavenia - 06-27-2011, 06:58 PM
RE: Note problem - by DamnNoHtml - 06-27-2011, 07:43 PM



Users browsing this thread: 1 Guest(s)