void wakeUp() { FadeIn(2); SetPlayerActive(true); SetSanityDrainDisabled(false); ShowPlayerCrossHairIcons(true); FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(10); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); PlayGuiSound("react_pant3.ogg", 1); FadeSepiaColorTo(0, 2); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.5, 2); SetPlayerCrouching(true); // Simulates being on the ground AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1); AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }
Above is incorrect. They're all should be in OnStart.
void wakeUp() { FadeIn(2); SetPlayerActive(true); SetSanityDrainDisabled(false); ShowPlayerCrossHairIcons(true); FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(10); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); PlayGuiSound("react_pant3.ogg", 1); FadeSepiaColorTo(0, 2); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.5, 2); SetPlayerCrouching(true); // Simulates being on the ground AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1); AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }