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
Introduction music won't stop
MaZiCUT Offline
Senior Member

Posts: 536
Threads: 31
Joined: Jun 2012
Reputation: 17
#1
Sad  Introduction music won't stop

As the title says, i'm a big phat phony who's stuck again.

void OnStart()
{

FadeOut(0);

AddTimer("", 4, "intro1");

AddEntityCollideCallback("Player", "WakeUpSpeech", "WakeUpSpeechFunc", true, 1);
}


void intro1(string &in asTimer)
{
SetMessage("Messages", "Introtext1", 5);

AddTimer("", 6, "intro2");

PlayMusic("Introduction.ogg", true, 1.0f, 0, 0, true);
}

void intro2(string &in asTimer)
{
SetMessage("Messages", "Introtext2", 5);

AddTimer("", 6, "intro3");
}

void intro3(string &in asTimer)
{
FadeIn(2);

AddTimer("", 1, "musicstart");
}

void musicstart(float afFadeTime, int alPrio)
{
AddTimer("", 4, "ambientstart");

PlayMusic("Ambient_Ghost.ogg",true,1,0,0,false);

StopMusic(0, 0);

}


void ambientstart(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("WakeUpSpeech", true);
}


void WakeUpSpeechFunc(string &in asChild, string &in asParent, int alState)
{
AddEffectVoice("ItsQuiet.ogg","","Voice","ItsQuiet",false,"",0,10);
}

Hi.
(This post was last modified: 06-26-2012, 07:34 PM by MaZiCUT.)
06-26-2012, 07:23 PM
Website Find


Messages In This Thread
Introduction music won't stop - by MaZiCUT - 06-26-2012, 07:23 PM
RE: Introduction music won't stop - by Cruzore - 06-26-2012, 07:31 PM
RE: Introduction music won't stop - by MaZiCUT - 06-26-2012, 07:34 PM



Users browsing this thread: 1 Guest(s)