Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Combinating problems
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#10
RE: Combinating problems

(08-03-2013, 10:44 PM)Rapture Wrote: ^
Can I see a example?

I do it that way because I find it easier to keep it neater and more open to understanding at a quick glance. 1000 ways to skin a cat.

Here's an example:

Let's see if I remember correctly

void Timer_IntroFade(string &in asTimer)
{
    AddLocalVarInt("IntroFade", 1
    switch(GetLocalVarInt("IntroFade")){
        case 1:
          FadeIn(1);
          StartPlayerLookAt("Area_Look_1", 0.75f, 0.75f, "");
        break;
        case 2:
          StopPlayerLookAt();
          StartPlayerLookAt("Area_Look_2", 1, 1, "");
          break;
        case 3:
          SetPlayerActive(true);
        break;
        case 4:
          SetMessage("Message", "001_Sally01", 0);
        break;
        case 5;
          SetMessage("Message", "001_Michael01", 0);
        break;
        case 6:
          SetMessage("Message", "001_Sally02", 0);
        case 7:
          StopPlayerLookAt();
          SetPlayerMoveSpeedMul(1);
          SetPlayerRunSpeedMul(1);
          SetPlayerLookSpeedMul(1);
          SetPlayerJumpDisabled(false);
          SetPlayerCrouchDisabled(false);
          SetInventoryDisabled(false);
        break;
        
        if(GetLocalVarInt("IntroFade") < 7) AddTimer("IntroFade", 1, "Timer_IntroFade");
    }
}

(This post was last modified: 08-04-2013, 01:34 AM by SilentStriker.)
08-04-2013, 01:33 AM
Find


Messages In This Thread
Combinating problems - by The chaser - 08-02-2013, 01:15 PM
RE: Combinating problems - by PutraenusAlivius - 08-02-2013, 01:31 PM
RE: Combinating problems - by The chaser - 08-02-2013, 03:19 PM
RE: Combinating problems - by Rapture - 08-02-2013, 03:38 PM
RE: Combinating problems - by The chaser - 08-02-2013, 04:21 PM
RE: Combinating problems - by Tomato Cat - 08-02-2013, 06:43 PM
RE: Combinating problems - by Rapture - 08-02-2013, 10:45 PM
RE: Combinating problems - by SilentStriker - 08-03-2013, 09:45 PM
RE: Combinating problems - by Rapture - 08-03-2013, 10:44 PM
RE: Combinating problems - by SilentStriker - 08-04-2013, 01:33 AM
RE: Combinating problems - by The chaser - 08-04-2013, 10:56 AM



Users browsing this thread: 1 Guest(s)