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
Using a lever to get to the next level (Crashing) Amnesia
Yoilickturtles Offline
Junior Member

Posts: 48
Threads: 9
Joined: Mar 2013
Reputation: 1
#4
RE: Using a lever to get to the next level (Crashing) Amnesia

void OnStart()
{
SetEntityConnectionStateChangeCallback("Lever3", "Lever3");
}

void Lever3(string &in asEntity, int alState)
{
if (alState ==-1) //up
{
FadeIn(1);
SetPlayerActive(false);
ChangeMap("Maps/Excavation_02.map", "PlayerStartArea_1", "","");
}


void OnEnter()
{
}

void OnLeave()
{
//////////////////////
//Load Screen Setup
SetupLoadScreen("LoadingText", "Ch01_Beginning", 5, "game_loading_rose.jpg");
}


Try that
04-04-2013, 01:19 AM
Find


Messages In This Thread
RE: Using a lever to get to the next level (Crashing) Amnesia - by Yoilickturtles - 04-04-2013, 01:19 AM



Users browsing this thread: 1 Guest(s)