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
Need various information
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#23
RE: Need various information

First, it depends if he is falling down a hole or not, but lets say that.

And so once the player collides with one of the areas in the shaft in the hole, stuff happens or you could add timers to be apart of the one single collide callback instead of many of them.

void OnStart()
{
     AddEntityCollideCallback("Player", "ScriptArea_1", "Func01", true, 1);
}
Func01(string &in asParent, string &in asChild, int alState)
{
     FadePlayerRollTo(110, 2, 3);
     FadeOut(5);
     AddTimer("", 5, "Func02");
}
Func02(string &in asTimer)
{
     PlaySoundAtEntity("", "player_bodyfall.snt", "Player", 0, false);
     ChangeMap("Map02", "PlayerStartArea_1", "", "");
}

The "ChangeMap" command teleports the player to a different map. Replace "Map02" with the name of your next map. The "PlayerStartArea_1", should be the name of the spawn in the next map for it is where the player will appear at once the map changes. The last 2 blanks can be left the way they are.

(This post was last modified: 06-06-2011, 11:16 AM by Kyle.)
06-06-2011, 11:15 AM
Find


Messages In This Thread
Need various information - by KenOfAllTrades - 05-25-2011, 07:40 PM
RE: Need various information - by palistov - 05-25-2011, 08:00 PM
RE: Need various information - by KenOfAllTrades - 05-25-2011, 08:12 PM
RE: Need various information - by palistov - 05-25-2011, 10:34 PM
RE: Need various information - by KenOfAllTrades - 05-26-2011, 02:41 PM
RE: Need various information - by palistov - 05-27-2011, 12:50 AM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 10:09 AM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 07:03 PM
RE: Need various information - by Kyle - 05-27-2011, 07:13 PM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 07:50 PM
RE: Need various information - by Kyle - 05-27-2011, 07:53 PM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 08:20 PM
RE: Need various information - by KenOfAllTrades - 05-28-2011, 09:00 PM
RE: Need various information - by Kyle - 05-28-2011, 09:04 PM
RE: Need various information - by KenOfAllTrades - 05-28-2011, 09:08 PM
RE: Need various information - by Kyle - 05-28-2011, 09:10 PM
RE: Need various information - by KenOfAllTrades - 05-30-2011, 07:08 PM
RE: Need various information - by Kyle - 05-30-2011, 10:29 PM
RE: Need various information - by KenOfAllTrades - 05-30-2011, 10:32 PM
RE: Need various information - by Kyle - 05-30-2011, 10:35 PM
RE: Need various information - by KenOfAllTrades - 06-01-2011, 12:45 PM
RE: Need various information - by KenOfAllTrades - 06-06-2011, 08:17 AM
RE: Need various information - by Kyle - 06-06-2011, 11:15 AM
RE: Need various information - by KenOfAllTrades - 06-06-2011, 11:18 AM



Users browsing this thread: 2 Guest(s)