05-02-2011, 02:39 PM
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 so anyone know how to fix this?
(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 so anyone know how to fix this?
(05-02-2011, 02:56 PM)Roenlond Wrote: [ -> ](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 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 =)
(05-02-2011, 03:07 PM)Roenlond Wrote: [ -> ]Just change the place that StopMusic is in, place it under the area collide function.
(05-02-2011, 03:24 PM)Roenlond Wrote: [ -> ]and the ClosingIn function works just fine except the music doesn't stop?
(05-02-2011, 06:34 PM)D3AD UPR1S1NG Wrote: [ -> ](05-02-2011, 03:24 PM)Roenlond Wrote: [ -> ]and the ClosingIn function works just fine except the music doesn't stop?
It's alright I got it working thanks for the help
(05-02-2011, 06:50 PM)Roenlond Wrote: [ -> ](05-02-2011, 06:34 PM)D3AD UPR1S1NG Wrote: [ -> ](05-02-2011, 03:24 PM)Roenlond Wrote: [ -> ]and the ClosingIn function works just fine except the music doesn't stop?
It's alright I got it working thanks for the help
Would you mind telling us what you did wrong, and what you did to fix it? It'll be useful for future searches of the same issue