Frictional Games Forum (read-only)

Full Version: Timer Trouble
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Long time, no see all. I have had a recent bolt of creativity and I have returned to work on my mod again. Although, I have struck a problem. This does not work 100%. It fades out, teleports, waits, and I can actually walk when after it fades in, and then goes black. Unfortunately, it stays black.

Code:
    void EventStart(string &in asTimer)
    {
        string x = asTimer;
        if (x == "T1")
        {
            FadeOut(0.5f);
        }
        if (x == "T2")
        {
            TeleportPlayer("PlayerStartArea_2");
            FadeIn(0.5f);
            SetPlayerActive(false);
        }
        if (x == "T3")
        {
            FadeOut(0.5f);
        }
        if (x == "T4")
        {
            TeleportPlayer("ActivateEvent");
            FadeIn(0.5f);
            SetPlayerActive(true);
        }
    }

Just wondering if anyone would know why this isn't working properly.

I figured it out, T3 was meant to be 4.6 not 0.6.