(05-11-2012, 01:35 PM)Adrianis Wrote: No need to fear, it won't take a sec to rewrite it now that you know what is required. Just check the names of the items, comment out your previous lines and write out some new ones
I THINK I fixed it but I don't really know for sure cause I copied the wake up thing from Nepsis and adjusted it to fit my map... unfourtunently.. and ofc... it makes serveral errors:
FATAL ERROR:
main 5,6 Expected (
main 19,6 Expected (
main 61,6 Expected (
main 66,6 Expected ( (Kinda satanic 1... lol)
The script looks like this:
//Run at the start of the game.
void OnGameStart()
{
//Intro
void Intro()
{
SetPlayerActive(false);
SetPlayerCrouching(true);
FadeOut(0);
AddTimer("TIntro0",0,"Intro2");
AddTimer("TIntro4",4,"Intro2");
AddTimer("TIntro6",6,"Intro2");
AddTimer("TIntro9",9,"Intro2");
AddTimer("TIntro10",10,"Intro2");
AddTimer("TIntro15",15,"Intro2");
}
void Intro2(string &in asTimer)
{
if(asTimer == "TIntro0")
{
PlayGuiSound("react_breath_slow",1);
MovePlayerHeadPos(-0.4f,-0.5f,0,50,1);
FadeRadialBlurTo(0.1f,0.1f);
FadeImageTrailTo(0.1f,0.1f);
SetRadialBlurStartDist(0.3f);
StartPlayerLookAt("IntroLook_1", 50, 50, "StopPlayerLookAt");
FadeIn(10);
}
else if(asTimer == "TIntro4")
{
StartPlayerLookAt("note1", 0.5f, 1, "");
StartPlayerLookAt("IntroLook_2", 0.5f, 1, "");
MovePlayerHeadPos(0,0,0,0.3f,1);
PlayGuiSound("react_sigh",1);
}
else if(asTimer == "TIntro6")
{
FadeOut(2);
PlayGuiSound("react_breath_slow",1);
}
else if(asTimer == "TIntro9")
{
FadeRadialBlurTo(0,3);
FadeImageTrailTo(0,3);
FadeIn(0.8f);
}
else if(asTimer == "TIntro10")
{
StartPlayerLookAt("note1", 0.5f, 1, "");
}
else if(asTimer == "TIntro15")
{
StopPlayerLookAt();
SetPlayerActive(true);
SetRadialBlurStartDist(0);
}
}
void StandTimer(string &in asParent, string &in asChild, int alState)
{
AddTimer("StandSleep",0.25f,"Stand");
}
void Stand(string &in asTimer)
{
SetPlayerCrouching(false);
}