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-16343.html)

Pages: 1 2


RE: Unexpected end of file - Cruzore - 06-20-2012

Found it after putting your script into geany:
void monsterscare2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_2", true);
AddEnemyPatrolNode("servant_brute_2", "monster_disable_node", 0, "run.dae_anim");
AddEntityCollideCallback("servant_brute_2", "monster_disable_area", monsterdisable", false, 1);
StartPlayerLookAt("castle_arched02", 10, 10, "");
AddTimer("stoplook", 2.0, "PlayerStopLook");
GiveSanityDamage(0, true);
}
>AddEntityCollideCallback("servant_brute_2", "monster_disable_area", monsterdisable", false, 1);
Did you, together with the monsterdisable function, added the " before monsterdisable?
Other than that, geany doesn't show up anything wrong, and all functions are listed.

Oh, got ninja'd while searching for the problem.


RE: Unexpected end of file - drunkmonk - 06-20-2012

(06-20-2012, 09:34 PM)Apjjm Wrote: You appear to be missing a ":
AddEntityCollideCallback("servant_brute_2", "monster_disable_area", monsterdisable", false, 1);


Try:
AddEntityCollideCallback("servant_brute_2", "monster_disable_area", "monsterdisable", false, 1);
oh perfect! I found one other error and fixed it and now everything is working great now. Thank you very much!