Frictional Games Forum (read-only)
help? - 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: help? (/thread-16293.html)



help? - peepeeboynotreal - 06-19-2012

making a new custom stroy and i'm setting up a monster jump scare when you stand in a spot i've done everything propley but now when i try to load it says "unexpected token {"
heres my HPS tell me if theres proplems
"void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}
void AddEnemyPatrolNode(string& servant_grunt_1, string& PathNodeArea_1, float 1, string& attack_run.anm);
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
}"


RE: help? - Your Computer - 06-19-2012

Function headers don't end with a semicolon.


RE: help? - peepeeboynotreal - 06-19-2012

(06-19-2012, 10:48 AM)Your Computer Wrote: Function headers don't end with a semicolon.
deleted the semicolons, still breaking.


RE: help? - Your Computer - 06-19-2012

(06-19-2012, 10:55 AM)nathrobskel Wrote: deleted the semicolons, still breaking.

Parameters aren't arguments; although, only the last two parameters of AddEnemyPatrolNode are syntactically incorrect.

I'm going to assume you wanted the collide callback to trigger AddEnemyPatrolNode. So, AddEnemyPatrolNode has the wrong callback syntax also.