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
Music Won't Stop [Solved]
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#2
RE: Music Won't Stop

(05-02-2011, 02:39 PM)D3AD UPR1S1NG Wrote: I've been having this really annoying problem lately where even if I set the StopMusic script the game just overlooks it and the song keeps on playing and it is really annoying Sad so anyone know how to fix this?

Make sure you use the correct priority. For example:



void OnStart()
{
PlayMusic("musicfile", true, 1.3f, 4.0f, 10, true);
}

void OnLeave()
{
StopMusic(0, 10);
}



The bold part is the priority, which in this case is 10. The stopmusic bold part needs to be the same as the playmusic bold part =)
(This post was last modified: 05-02-2011, 02:57 PM by Roenlond.)
05-02-2011, 02:56 PM
Find


Messages In This Thread
Music Won't Stop [Solved] - by D3AD UPR1S1NG - 05-02-2011, 02:39 PM
RE: Music Won't Stop - by Roenlond - 05-02-2011, 02:56 PM
RE: Music Won't Stop - by D3AD UPR1S1NG - 05-02-2011, 03:05 PM
RE: Music Won't Stop - by Roenlond - 05-02-2011, 03:07 PM
RE: Music Won't Stop - by D3AD UPR1S1NG - 05-02-2011, 03:16 PM
RE: Music Won't Stop - by Roenlond - 05-02-2011, 03:24 PM
RE: Music Won't Stop - by D3AD UPR1S1NG - 05-02-2011, 06:34 PM
RE: Music Won't Stop - by Roenlond - 05-02-2011, 06:50 PM
RE: Music Won't Stop - by D3AD UPR1S1NG - 05-03-2011, 10:31 PM



Users browsing this thread: 1 Guest(s)