Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Note problem
Author Message
TheDavenia Offline
Member

Posts: 223
Joined: Jun 2011
Reputation: 0
Post: #1
Note problem
I got this note with a voice of the player reading it but theres a monster in another room and at the start u hear the monster and the war drums start playing but becouse they are to loud i cant hear the voice talk... How do i lower the war drums on the custom story or remove them or higher the volume of the voice?

Thanks,
TheDavenia

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
06-27-2011 06:58 PM
Find all posts by this user Quote this message in a reply
DamnNoHtml Offline
Senior Member

Posts: 386
Joined: Sep 2010
Reputation: 11
Post: #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, and Insomnia
06-27-2011 07:43 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)