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?
SkuLLfac3 Offline
Junior Member

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

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", "", "");
}


void OnLeave()
{
    SetupLoadScreen("LoadingText", "Loading_Latrine", 1, "loadingscreen.jpg");
}

Thats the full script of Intro2.map
06-23-2011, 01:34 AM
Find


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



Users browsing this thread: 1 Guest(s)