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
Unexpected EOF
Nomad923 Offline
Junior Member

Posts: 46
Threads: 15
Joined: Dec 2011
Reputation: 2
#1
Unexpected EOF

You guys notice anything that would cause the "Unexpected end of file" error im getting?


void OnStart()
{

}

void OnEnter()
{
AddEntityCollideCallback("servant_grunt_1", "ScriptArea_1", "DisableMonster", true, 1);
AddEntityCollideCallback("servant_grunt_1", "ScriptArea_2", "ActivateMonsterB", true, 1);
AddEntityCollideCallback("servant_grunt_2", "ScriptArea_3", "StopLook", true, 1);
AddEntityCollideCallback("servant_grunt_2", "ScriptArea_4", "OpenClosetScare", true, 1);
PlayMusic("basements.ogg", true, 1.3f, 0.0f, 5, true);
SetEntityPlayerInteractCallback("key_study_4", "ActivateMonster", true);
}

void DisableMonster(string &in item)
{
SetEntityActive("servant_grunt_1", false);
}

void ActivateMonster(string &in item)
{
GiveSanityDamage(5.0f, true);
SetEntityActive("servant_grunt_1", true);
SetEntityActive("ScriptArea3", true);
StartPlayerLookAt("servant_grunt_1",4.5f,6.0f,"");
PlaySoundAtEntity("", "react_pant", "stool_wood_2", 0, false);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "idle");
AddTimer("",2.0f,"stoplook");
}

void ActivateMonsterB(string &in asParent, string &in asChild, int alState)
{
SetMessage("PersonalThoughts", Hide", 6);
SetEntityActive("servant_grunt_2", true);
StartPlayerLookAt("servant_grunt_2",4.5f,6.0f,"");
SetMoveObjectState("mansion_2", 1);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_6", 0, "idle");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_7", 0, "idle");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_8", 0, "idle");
}

void StopLook(string &in item, string &in entity)
{
StopPlayerLookAt();
}

void OpenClosetScare(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("cabinet_closed", false);
SetEntityActive("cabinet_open", true);
PlaySoundAtEntity("", "24_iron_maiden.snt", "Player", 0, false);
}


void OnLeave()
{
}

[Image: qg_logo.png]
(This post was last modified: 04-07-2012, 02:16 AM by Nomad923.)
04-07-2012, 01:49 AM
Find


Messages In This Thread
Unexpected EOF - by Nomad923 - 04-07-2012, 01:49 AM
RE: Unexpected EOF - by JetlinerX - 04-07-2012, 01:52 AM
RE: Unexpected EOF - by Your Computer - 04-07-2012, 01:54 AM
RE: Unexpected EOF - by Nomad923 - 04-07-2012, 01:54 AM
RE: Unexpected EOF - by SilentStriker - 04-07-2012, 02:50 AM



Users browsing this thread: 1 Guest(s)