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
Unexpected end of file
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#11
RE: Unexpected end of file

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.
(This post was last modified: 06-20-2012, 09:38 PM by Cruzore.)
06-20-2012, 09:36 PM
Find
drunkmonk Offline
Member

Posts: 109
Threads: 7
Joined: Jun 2012
Reputation: 4
#12
RE: Unexpected end of file

(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!
06-20-2012, 09:40 PM
Find




Users browsing this thread: 1 Guest(s)