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 to stop music when going next level on door?
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#6
RE: How to stop music when going next level on door?

(07-10-2011, 10:18 AM)HumiliatioN Wrote: Not working this is my script:

Forbidden cellar hps. map file:

void MusicControl2(string &in asParent, string &in asChild, int alState)
{
PlayMusic("You Only Live Once.ogg", false, 3, 3, 10, true);
StopMusic(2, 0);
}

Undead house map hps. map file:

void MusicControl(string &in asParent, string &in asChild, int alState)
{
if(alState == 1) PlayMusic("Requim For A Dream.ogg", true, 1.0f, 0, 0, true);
if(alState == -1) StopMusic(2, 0);
}

Still playing when i exit the next map Sad
if you want to do it that way, then it should be...

void MusicControl2(string &in asParent, string &in asChild, int alState)
{
StopMusic(4, 1);
PlayMusic("You Only Live Once.ogg", false, 3, 3, 10, true);
}

void MusicControl(string &in asParent, string &in asChild, int alState)
{
if(alState == 1) PlayMusic("Requim For A Dream.ogg", true, 1.0f, 0, 0, true);
else StopMusic(4, 1);
}





Insanity. Static.
07-10-2011, 01:27 PM
Find


Messages In This Thread
RE: How to stop music when going next level on door? - by Juby - 07-10-2011, 01:27 PM



Users browsing this thread: 1 Guest(s)