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)
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#6
RE: Custom Music FATAL ERROR (Seriously Need Assistance)

(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

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-16-2012, 06:40 PM
Find


Messages In This Thread
RE: Custom Music FATAL ERROR (Seriously Need Assistance) - by The chaser - 11-16-2012, 06:40 PM



Users browsing this thread: 2 Guest(s)