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()
{
}
(This post was last modified: 04-07-2012, 02:16 AM by Nomad923.)
|