Frictional Games Forum (read-only)
Unexpected end of file - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Unexpected end of file (/thread-13518.html)



Unexpected end of file - ammislol - 02-22-2012

Hello. When I try to open my custom map i get an error telling me Unexpected end of file. I have 2 maps and i have no problem opening the other. And the script looks pretty much the same.
The script look like this. Anyone can help me with this? So I dont get any more errors
Thanks in advance


void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_15", "ActivateMonster1", false, 0);
}

void ActivateMonster1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("waterlurker_2", true);
}

void OnEnter()
{
AddEntityCollideCallback("Player", "pooarea", "func_slam", true, 1);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
SetPlayerActive(false);
StartPlayerLookAt("mansion_1", 3.0f, 5.0f, "");
AddTimer("timer01", 1.5f, "StopLook");

void StopLook(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}


RE: Unexpected end of file - palistov - 02-22-2012

You need to close your braces in your func_slam function


RE: Unexpected end of file - ammislol - 02-22-2012

(02-22-2012, 08:03 PM)palistov Wrote: You need to close your braces in your func_slam function
Oh i found it, thank you