Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help?
peepeeboynotreal Offline
Junior Member

Posts: 17
Threads: 10
Joined: Jun 2012
Reputation: 4
#1
help?

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, "");
}"
06-19-2012, 10:35 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: help?

Function headers don't end with a semicolon.

Tutorials: From Noob to Pro
06-19-2012, 10:48 AM
Website Find
peepeeboynotreal Offline
Junior Member

Posts: 17
Threads: 10
Joined: Jun 2012
Reputation: 4
#3
RE: help?

(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
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: help?

(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.

Tutorials: From Noob to Pro
(This post was last modified: 06-19-2012, 11:25 AM by Your Computer.)
06-19-2012, 11:23 AM
Website Find




Users browsing this thread: 2 Guest(s)