The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Whats Wrong???
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#1
Whats Wrong???

Hi.

When I try to start my story it gets a fatal error.
Can anybody see whats wrong with my script???

Here is the full script:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "LookAtRocks", "LookRocks", true, 1);
SetPlayerCrouching(true);
FadeOut(0);
SetPlayerActive(false);
AddTimer("", 10.0f, "IntroStart2");
SetMessage("IntroCategory", "Intro1", 0);
}

void LookRocks(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("RockDebris", 2.0f, 5.0f, "");
AddTimer("", 1.0f, "StopLookAtRocks");
}

void IntroStart2(string &in asTimer)
{
SetMessage("IntroCategory", "Intro2", 0);
AddTimer("", 10.0f, "IntroStart3");
}

void IntroStart3(string &in asTimer)
{
SetMessage("IntroCategory", "Intro3", 0);
AddTimer("", 10.0f, "WakeUp");
}

void WakeUp(string &in asTimer)
{
FadeOut(0);
FadeIn(20);
FadeImageTrailTo(2, 2);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220);
FadeRadialBlurTo(0.15, 2);
AddTimer("trig1", 11.0f, "beginStory");
}

void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
AddQuest("Memento1","Memento1);
}

void StopLookAtRocks(string &in asTimer)
{
SetMessage("JohnatanThoughts", "Thought1", 0);
StopPlayerLookAt();
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
03-14-2011, 12:54 PM
Find


Messages In This Thread
Whats Wrong??? - by Henriksen - 03-14-2011, 12:54 PM
RE: Whats Wrong??? - by Linus Ågren - 03-14-2011, 01:44 PM
RE: Whats Wrong??? - by Henriksen - 03-14-2011, 02:03 PM
RE: Whats Wrong??? - by Pandemoneus - 03-14-2011, 02:24 PM
RE: Whats Wrong??? - by Henriksen - 03-14-2011, 04:09 PM
RE: Whats Wrong??? - by SHODANFreeman - 03-14-2011, 04:59 PM
RE: Whats Wrong??? - by Henriksen - 03-14-2011, 06:37 PM
RE: Whats Wrong??? - by Droopy - 03-14-2011, 08:38 PM



Users browsing this thread: 1 Guest(s)