Ainz
Junior Member
Posts: 9
Threads: 1
Joined: Sep 2012
Reputation:
0
|
PlayMusic Problem
Hey guys,
I'm pretty much done with my CS, I only need to fix a little problem with the PlayMusic command.
When I'm testing just the map (let's call it: map 2) where some music is supposed to be played everything works just fine.
Though, when you play the custom story, and get teleported to that map (map 2), you still hear the sound from the map (map 1) you got teleported from.
I used several commands to stop the music and also I lowered the sounds priority.
Here's an outtake from the script:
void OnStart()
{
PlayMusic("06_amb.ogg", true, 1, 3, 0.9f, true);
}
void OnLeave()
{
StopMusic(1, 1);
StopSound("06_amb.ogg", 1);
AddDebugMessage("Sounds Removed", false);
}
because that didn't do anything, I copied and pasted it in the OnStart of the next maps script as well without any result. The sound keeps playing.
If you want the whole custom story - either to test it for me and give me some criticism or - to check out the problem with the sound yourself, just tell me and I'll give you a download link.
Thanks in advance,
Ainz
|
|
09-16-2012, 06:21 PM |
|