Frictional Games Forum (read-only)

Full Version: help?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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, "");
}"
Function headers don't end with a semicolon.
(06-19-2012, 10:48 AM)Your Computer Wrote: [ -> ]Function headers don't end with a semicolon.
deleted the semicolons, still breaking.
(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.