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
How can I make an area for a mapchange?
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#8
RE: How can I make an area for a mapchange?

You need to use both { and } on void OnEnter(), after that it should work correctly.

i.e;

Spoiler below!

void OnStart()
{

MovePlayerHeadPos( 0, 0, 0, 10, 0.10f);

PlayMusic("introsound.ogg", true, 1.0f, 0, 100, true);

AddEntityCollideCallback("Player", "toLatrine", "to_Latrine", false, 1);
}



void OnEnter()
{

}

void toLatrine(string &in asParent, string &in asChild, int alState)

{
ChangeMap("Latrine", "PlayerStartArea_1", "", "");
}

06-23-2011, 01:40 AM
Find


Messages In This Thread
RE: How can I make an area for a mapchange? - by rojkish - 06-23-2011, 01:40 AM



Users browsing this thread: 4 Guest(s)