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
EveryDayImShufflin Offline
Junior Member

Posts: 1
Threads: 1
Joined: Feb 2012
Reputation: 0
#1
Player 'faints' and enters the next map

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
(This post was last modified: 02-04-2012, 02:05 PM by EveryDayImShufflin.)
02-02-2012, 11:10 PM
Find
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




Users browsing this thread: 1 Guest(s)