RE: extra_english now is working, but I need help with a different script :)
(05-17-2011, 03:55 PM)Roenlond Wrote: First:
The syntax in parentheses is wrong. Since the command is "AddEntityCollideCallback", the script functions page http://wiki.frictionalgames.com/hpl2/amn..._functions says that you should use:
void MyFunc(string &in asParent, string &in asChild, int alState)
the code should work besides that, as long as the callback is inside a function (void OnStart in most cases). Syntax errors are one of the nastiest; they don't give any errors but the function won't work anyhow.
void wakeUp ()
{
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // 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", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}