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 Fadein ? or Wake up
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#20
RE: Fadein ? or Wake up

SetMessage is not defined in a callback function. Functions like SetMessage and AddEntityCollideCallback, etc. has to be on one of the brackets.

PHP Code: (Select All)
void OnStart()
{
wakeUp();
}

void wakeUp () {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(22);
FadeSepiaColorTo(1004);
SetPlayerActive(false); 
FadePlayerRollTo(50220220); // "Tilts" the players head
FadeRadialBlurTo(0.152);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1"11.0f"beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetMessage("TextCategory""TextEntry"0);
SetPlayerActive(true);
FadePlayerRollTo(03333); // Change all settings to defaults
FadeRadialBlurTo(0.01);
FadeSepiaColorTo(04);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);


"Veni, vidi, vici."
"I came, I saw, I conquered."
03-08-2014, 03:16 PM
Find


Messages In This Thread
Fadein ? or Wake up - by Straxedix - 03-08-2014, 01:52 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 01:53 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 01:54 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 01:59 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 02:03 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 02:04 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 02:08 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 02:13 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 02:17 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 02:20 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 02:23 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 02:29 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 02:39 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 02:44 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 02:51 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 02:55 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 03:00 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 03:01 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 03:03 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 03:16 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 03:21 PM
RE: Fadein ? or Wake up - by PutraenusAlivius - 03-08-2014, 03:38 PM
RE: Fadein ? or Wake up - by Straxedix - 03-08-2014, 03:48 PM



Users browsing this thread: 2 Guest(s)