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
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
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
{
FadeOut(1);
SetPlayerActive(false);
ChangeMap("Excavation_02.map", "PlayerStartArea_1", "","");
}
}

void OnEnter()

{
}

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

Tell me if the problem still persists.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 04-03-2013, 02:04 PM by PutraenusAlivius.)
04-03-2013, 02:02 PM
Find


Messages In This Thread
RE: Using a lever to get to the next level (Crashing) Amnesia - by PutraenusAlivius - 04-03-2013, 02:02 PM



Users browsing this thread: 1 Guest(s)