Frictional Games Forum (read-only)

Full Version: Unexpected end of file.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm getting an error when I start up Amnesia that there is an "Unexpected end of file".. it says that it should be around here somewhere, my script is so long it would be a waste putting it all down. This is the end of my script however. Does anybody see anything that is out of place here or do you guys think that it is something else?

_______________________________________________________________


void door_swing1(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorDisableAutoClose("cellar_wood01_5", true);
AddPropForce("cellar_wood01_5", 850, 0, 750,"world");
}

void door_swing2(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false);

GiveSanityDamage(6.0f, true);
}

void Collideroomareathree(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "player_bodyfall.snt", "wood_box02_breakable_4", 0, true);
PlaySoundAtEntity("", "scare_wind.snt", "wood_box02_breakable_4", 0, true);
GiveSanityDamage(4.0f, true);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}

void Collideroomareatwo(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "23_breath.snt", "Player", 0, false);
}

void Collidesoundarea1(string &in asParent, string &in asChild, int alState)
{
SetLampLit("torch_static01_1", false, true);
}
looks fine. Try post your entire .hps
It's okay. For some reason my error was higher up the .hps

it's all fixed now, thanks for taking an interest in helping though