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
KenOfAllTrades Offline
Member

Posts: 53
Threads: 2
Joined: Apr 2011
Reputation: 0
#21
RE: Need various information

Okay so, I need a script where the player falls down sideways and everything fades out, as if he faints. Problem is that I don't know how to do it, and I've tried using the original story's scripts for help, but I just can't understand them at all. Could you please teach me how to?

Or if you can't, but you can make the script, make the script for me?

I probably made a LP of this! Youtube channel here!
06-01-2011, 12:45 PM
Find
KenOfAllTrades Offline
Member

Posts: 53
Threads: 2
Joined: Apr 2011
Reputation: 0
#22
RE: Need various information

Bump? I really need help

I probably made a LP of this! Youtube channel here!
06-06-2011, 08:17 AM
Find
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
KenOfAllTrades Offline
Member

Posts: 53
Threads: 2
Joined: Apr 2011
Reputation: 0
#24
RE: Need various information

Ah, great! Now I can finish up my map! Thank you once again, I cannot explain my grattitude

I probably made a LP of this! Youtube channel here!
06-06-2011, 11:18 AM
Find




Users browsing this thread: 7 Guest(s)