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
Custom Music FATAL ERROR (Seriously Need Assistance)
Fictionult Offline
Junior Member

Posts: 16
Threads: 6
Joined: Apr 2011
Reputation: 0
#7
RE: Custom Music FATAL ERROR (Seriously Need Assistance)

(11-16-2012, 06:40 PM)The chaser Wrote:
(11-16-2012, 06:26 PM)Fictionult Wrote:
(11-16-2012, 06:21 PM)andyrockin123 Wrote: the "O" in FadeOut needs to be capitalized.
The map now runs, thanks to you.

Yet no music is playing at all. Any wonder to that?
This is what you have:

//////////////////

// Run first time starting map

void OnStart()

{

Fadeout(0);



FadeIn(50);



AddEntityCollideCallback ("PlayerStartArea_1" , "Music_1", "start", true, 1);

}



void start(string &in asParent, string &in asChild, int alstate)

{

PlaySoundAtEntity("", "Distance.snt", "PlayerStartArea_1", 0, false);

}

//////////////////

// Run first time starting map

void OnEnter()

{



}



//////////////////

// Run first time starting map

void OnLeave()

{



}

It should be like this:

//////////////////

// Run first time starting map

void OnStart()

{

FadeOut(0);



FadeIn(50);



AddEntityCollideCallback ("Player" , "nameofarea", "start", true, 1);

}



void start(string &in asParent, string &in asChild, int alstate)

{

PlaySoundAtEntity("", "Distance.snt", "PlayerStartArea_1", 0, false);

}

//////////////////

// Run first time starting map

void OnEnter()

{



}



//////////////////

// Run first time starting map

void OnLeave()

{



}

You have to specify that when the player collides with an area this one does something, right? Wink
Yours was correct, although I had to fix a couple things.
Still, thank you so much for your help. I appreciate all of it.
11-16-2012, 08:17 PM
Find


Messages In This Thread
RE: Custom Music FATAL ERROR (Seriously Need Assistance) - by Fictionult - 11-16-2012, 08:17 PM



Users browsing this thread: 1 Guest(s)