The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
PlayMusic Problem
Ainz Offline
Junior Member

Posts: 9
Threads: 1
Joined: Sep 2012
Reputation: 0
#1
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
Find


Messages In This Thread
PlayMusic Problem - by Ainz - 09-16-2012, 06:21 PM
RE: PlayMusic Problem - by Robby - 09-16-2012, 06:29 PM
RE: PlayMusic Problem - by Ainz - 09-16-2012, 09:13 PM
RE: PlayMusic Problem - by Robby - 09-17-2012, 11:40 AM
RE: PlayMusic Problem - by Ainz - 09-17-2012, 12:26 PM
RE: PlayMusic Problem - by Robby - 09-17-2012, 12:37 PM



Users browsing this thread: 1 Guest(s)