Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
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 |
|
Elven
Posting Freak
Posts: 862
Threads: 37
Joined: Aug 2011
Reputation:
26
|
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!
|
|
10-04-2011, 09:12 PM |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
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 |
|
schmupper
Junior Member
Posts: 23
Threads: 1
Joined: Aug 2011
Reputation:
2
|
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 |
|
Elven
Posting Freak
Posts: 862
Threads: 37
Joined: Aug 2011
Reputation:
26
|
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 .
(This post was last modified: 10-04-2011, 09:16 PM by Elven.)
|
|
10-04-2011, 09:16 PM |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
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 . 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 |
|
Elven
Posting Freak
Posts: 862
Threads: 37
Joined: Aug 2011
Reputation:
26
|
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 !)
|
|
10-04-2011, 09:23 PM |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
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 !) 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 |
|
Elven
Posting Freak
Posts: 862
Threads: 37
Joined: Aug 2011
Reputation:
26
|
RE: How do I remove music from an enemy being around?
Let me know if something goes wrong
|
|
10-04-2011, 09:38 PM |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
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 Nope, it went perfectly in the first shot. =]
|
|
10-04-2011, 09:41 PM |
|
|