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
Player 'faints' and enters the next map
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#2
RE: Player 'feints' and enters the next map

You could try this:
Put This in your onStart
AddEntityCollideCallback("Player", "Trigger_1", "Faint", true, 1);

Then put this anywhere else in the script.
void Faint(string &in asParent, string &in as Child, int alState)
{
FadePlayerRollTo(50, 220, 220);       //Rolls your head to the side
SetPlayerCrouching(true); //Makes the falling down more realistic
FadeOut(5.0f); //This means it will take 5 seconds to fade to black
ChangeMap("00_Awakened", "PlayerStartArea_1", "", "",); //Changes the map
}


Try that....

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
02-03-2012, 01:49 AM
Find


Messages In This Thread
RE: Player 'feints' and enters the next map - by RawkBandMan - 02-03-2012, 01:49 AM



Users browsing this thread: 1 Guest(s)