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
Scripting multiple levels help
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#5
RE: Scripting multiple levels help

Quote:Code:
PlayMusic("08_amb.ogg", true, 1.0f, 3, 0, true);
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

You indicated fadeTime in this one... Try removing the fade time.

I tried what you said.. no luck. So I tried messing around with it, I loaded the map directly, still no music. However, a debug message does appear saying:

Saving check point_auto music: "

Maybe there's something wrong with my script? This is the entire I script I have for Map 2:
////////////////////////////
// Run first time starting map
void OnStart()
{  

}

////////////////////////////
// Run when entering map
void OnEnter()
{

PlayMusic("08_amb.ogg", true, 1.0f, 0, 0, true);

}

////////////////////////////
// Run when leaving map
void OnLeave()
{
StopMusic(5.0, 0);
}
01-01-2011, 05:14 AM
Find


Messages In This Thread
Scripting multiple levels help - by Equil - 01-01-2011, 04:29 AM
RE: Scripting multiple levels help - by xiphirx - 01-01-2011, 04:48 AM
RE: Scripting multiple levels help - by Equil - 01-01-2011, 04:52 AM
RE: Scripting multiple levels help - by xiphirx - 01-01-2011, 05:01 AM
RE: Scripting multiple levels help - by Equil - 01-01-2011, 05:14 AM
RE: Scripting multiple levels help - by xiphirx - 01-01-2011, 05:18 AM
RE: Scripting multiple levels help - by Equil - 01-01-2011, 07:06 AM
RE: Scripting multiple levels help - by Equil - 01-01-2011, 04:03 PM



Users browsing this thread: 1 Guest(s)