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 Another 1 New error and I just don't know where it is!
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#4
RE: Custom story script error! pls help!

(01-05-2014, 07:52 PM)Lazzer Wrote:
void OnStart()
{
wakeUp();
}
void wakeUp() {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(10); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 10.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer) {
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
SetPlayerLampOil(10);
}

Try this

yes it worked, thank you so much! Big Grin
(This post was last modified: 01-05-2014, 08:01 PM by Radical Batz.)
01-05-2014, 07:56 PM
Find


Messages In This Thread
RE: Help with coding! - by ClayPigeon - 01-05-2014, 07:06 PM
RE: Custom story script error! pls help! - by Radical Batz - 01-05-2014, 07:56 PM



Users browsing this thread: 1 Guest(s)