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 Wake up script
Saren Offline
Member

Posts: 196
Threads: 20
Joined: Jan 2012
Reputation: 1
#51
RE: Wake up script

(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);
}

05-11-2012, 08:45 PM
Find


Messages In This Thread
Wake up script - by Saren - 04-30-2012, 11:44 AM
RE: Wake up script - by trollox - 04-30-2012, 11:50 AM
RE: Wake up script - by Saren - 04-30-2012, 12:19 PM
RE: Wake up script - by Your Computer - 04-30-2012, 12:27 PM
RE: Wake up script - by Saren - 04-30-2012, 12:31 PM
RE: Wake up script - by Your Computer - 04-30-2012, 12:38 PM
RE: Wake up script - by Saren - 04-30-2012, 12:42 PM
RE: Wake up script - by Adrianis - 04-30-2012, 01:16 PM
RE: Wake up script - by Saren - 04-30-2012, 05:15 PM
RE: Wake up script - by JetlinerX - 04-30-2012, 05:26 PM
RE: Wake up script - by Saren - 04-30-2012, 07:55 PM
RE: Wake up script - by Adrianis - 05-01-2012, 07:48 PM
RE: Wake up script - by Saren - 05-01-2012, 11:05 PM
RE: Wake up script - by Adrianis - 05-02-2012, 07:26 PM
RE: Wake up script - by Saren - 05-03-2012, 12:48 PM
RE: Wake up script - by Homicide13 - 05-03-2012, 03:13 PM
RE: Wake up script - by Saren - 05-04-2012, 02:19 PM
RE: Wake up script - by Homicide13 - 05-04-2012, 02:50 PM
RE: Wake up script - by Saren - 05-04-2012, 03:08 PM
RE: Wake up script - by Homicide13 - 05-04-2012, 06:59 PM
RE: Wake up script - by Saren - 05-04-2012, 10:17 PM
RE: Wake up script - by Homicide13 - 05-04-2012, 10:20 PM
RE: Wake up script - by Saren - 05-04-2012, 10:30 PM
RE: Wake up script - by Homicide13 - 05-05-2012, 12:35 AM
RE: Wake up script - by Saren - 05-05-2012, 12:57 AM
RE: Wake up script - by FragdaddyXXL - 05-04-2012, 11:43 PM
RE: Wake up script - by Saren - 05-05-2012, 12:00 AM
RE: Wake up script - by Homicide13 - 05-05-2012, 01:08 AM
RE: Wake up script - by Saren - 05-05-2012, 01:09 AM
RE: Wake up script - by Cranky Old Man - 05-05-2012, 02:01 AM
RE: Wake up script - by Saren - 05-05-2012, 02:21 AM
RE: Wake up script - by Your Computer - 05-05-2012, 02:29 AM
RE: Wake up script - by Saren - 05-05-2012, 02:40 AM
RE: Wake up script - by Your Computer - 05-05-2012, 02:45 AM
RE: Wake up script - by Saren - 05-05-2012, 02:47 AM
RE: Wake up script - by Cranky Old Man - 05-05-2012, 02:44 AM
RE: Wake up script - by Your Computer - 05-05-2012, 04:23 PM
RE: Wake up script - by Saren - 05-05-2012, 06:42 PM
RE: Wake up script - by Saren - 05-10-2012, 11:31 AM
RE: Wake up script - by Adrianis - 05-10-2012, 01:38 PM
RE: Wake up script - by Saren - 05-10-2012, 07:24 PM
RE: Wake up script - by Adrianis - 05-10-2012, 09:38 PM
RE: Wake up script - by Saren - 05-10-2012, 10:33 PM
RE: Wake up script - by Adrianis - 05-10-2012, 10:51 PM
RE: Wake up script - by Saren - 05-10-2012, 11:19 PM
RE: Wake up script - by Adrianis - 05-11-2012, 12:01 AM
RE: Wake up script - by Saren - 05-11-2012, 12:05 AM
RE: Wake up script - by Adrianis - 05-11-2012, 09:37 AM
RE: Wake up script - by Saren - 05-11-2012, 10:31 AM
RE: Wake up script - by Adrianis - 05-11-2012, 01:35 PM
RE: Wake up script - by Saren - 05-11-2012, 08:45 PM
RE: Wake up script - by Adrianis - 05-11-2012, 09:15 PM
RE: Wake up script - by Saren - 05-11-2012, 10:40 PM
RE: Wake up script - by Adrianis - 05-11-2012, 11:19 PM
RE: Wake up script - by Saren - 05-12-2012, 01:03 AM
RE: Wake up script - by Adrianis - 05-12-2012, 04:08 PM
RE: Wake up script - by Saren - 05-13-2012, 03:28 AM
RE: Wake up script - by Rownbear - 05-13-2012, 04:35 PM
RE: Wake up script - by Saren - 05-13-2012, 08:23 PM
RE: Wake up script - by Adrianis - 05-13-2012, 09:10 PM
RE: Wake up script - by Saren - 05-14-2012, 02:14 AM
RE: Wake up script - by Statyk - 05-14-2012, 03:52 AM
RE: Wake up script - by Saren - 05-14-2012, 08:12 AM
RE: Wake up script - by Adrianis - 05-14-2012, 01:16 PM
RE: Wake up script - by Mine Turtle - 05-14-2012, 03:01 PM
RE: Wake up script - by Adrianis - 05-14-2012, 03:48 PM
RE: Wake up script - by Saren - 05-14-2012, 05:13 PM
RE: Wake up script - by Adrianis - 05-14-2012, 06:39 PM
RE: Wake up script - by Saren - 05-14-2012, 07:03 PM
RE: Wake up script - by Cranky Old Man - 05-14-2012, 06:56 PM
RE: Wake up script - by Adrianis - 05-14-2012, 07:10 PM



Users browsing this thread: 21 Guest(s)