Frictional Games Forum (read-only)

Full Version: Player 'faints' and enters the next map
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am not very good at scripting this game, I don't understand alot of it, though I have tried I can't figure out how to do it, nor can I find a tutorial on this or a script already on the internet

I need a script that when player enters an area named "Trigger_1" he falls to the ground, blacks out and then is changed to another map called "00_Awakened"

You're help will be very much appretiated Big Grin
You could try this:
Put This in your onStart
Code:
AddEntityCollideCallback("Player", "Trigger_1", "Faint", true, 1);

Then put this anywhere else in the script.
Code:
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....