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 Timer Trouble
Pshyched Offline
Member

Posts: 130
Threads: 21
Joined: Nov 2012
Reputation: 5
#1
Timer Trouble

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.

    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.
(This post was last modified: 11-13-2013, 02:08 PM by Pshyched.)
11-13-2013, 01:30 PM
Find




Users browsing this thread: 1 Guest(s)