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
How do I remove music from an enemy being around?
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#1
How do I remove music from an enemy being around?

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?
(This post was last modified: 10-04-2011, 10:12 PM by Statyk.)
10-04-2011, 09:08 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#2
RE: How do I remove music from an enemy being around?

Put other music and set priority way higher then the monster background music. Maybe try something like 100 to guarantee it!

The Interrogation
Chapter 1

My tutorials
10-04-2011, 09:12 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#3
RE: How do I remove music from an enemy being around?

(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.

10-04-2011, 09:14 PM
Find
schmupper Offline
Junior Member

Posts: 23
Threads: 1
Joined: Aug 2011
Reputation: 2
#4
RE: How do I remove music from an enemy being around?

(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.



''Oh. My. God. He's DEAD. Quickly, if he hasnt started to smell, give him the kiss of life!''

Clarence - The monkey hater
10-04-2011, 09:16 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#5
RE: How do I remove music from an enemy being around?

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 Smile.

The Interrogation
Chapter 1

My tutorials
(This post was last modified: 10-04-2011, 09:16 PM by Elven.)
10-04-2011, 09:16 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#6
RE: How do I remove music from an enemy being around?

(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.

Btw, monster music is background music Smile.
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?

10-04-2011, 09:21 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#7
RE: How do I remove music from an enemy being around?

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 Smile!)

The Interrogation
Chapter 1

My tutorials
10-04-2011, 09:23 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: How do I remove music from an enemy being around?

(10-04-2011, 09:23 PM)Elven Wrote: 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 Smile!)
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.
(This post was last modified: 10-04-2011, 09:35 PM by Statyk.)
10-04-2011, 09:28 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#9
RE: How do I remove music from an enemy being around?

Let me know if something goes wrong Smile

The Interrogation
Chapter 1

My tutorials
10-04-2011, 09:38 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#10
RE: How do I remove music from an enemy being around?

(10-04-2011, 09:38 PM)Elven Wrote: Let me know if something goes wrong Smile
Nope, it went perfectly in the first shot. =]
10-04-2011, 09:41 PM
Find




Users browsing this thread: 1 Guest(s)