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
Script Help Does anybody know how I'm supposed to do this pls? [SOLVED]
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#5
RE: Does anybody know how I'm supposed to do this pls?

This is actually very simple. Now, depending on whether you have any distracting elements in the level you want to teleport to, you might not even need to teleport the player because since the screen is black, they won't know they're there. If you do have something that can distract (like torch sound effects or similar), just have the player somewhere quiet and teleport him once it's done.

Firstly, you do something like this:
void OnStart()
{
    FadeOut(0);
    AddEffectVoice("voicefile", "", "SubtitleCategory", "SubtitleEntry",
false, "", 0, 5); //Repeat this line for as many voice files you have.
    SetEffectVoiceOverCallback("VoicesDone"); //This enables a callback that happens when the voices are done.
}

void VoicesDone()
{
    wakeup(); //Or whatever event that calls the wake up sequence.
}

03-08-2014, 11:46 PM
Find


Messages In This Thread
RE: Does anybody know how I'm supposed to do this pls? - by Mudbill - 03-08-2014, 11:46 PM



Users browsing this thread: 1 Guest(s)