(12-02-2012, 09:24 PM)Gamerlord08 Wrote: alright, it says no matching sginatures to the callback's, odd. i went and checked if they matched perfectly, and they check out. but they still say there's no matching sigs. but, if i add that ; to void monsterfunction, it then says unexpected token.
void OnStart()
{
PlayMusic("01_amb_darkness.ogg", true, 1.0f, 0, 0, true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "MonsterEnd", "THERE IS A MISSING CALLBACK IN HERE" true, 1);
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_Grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_Grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_Grunt_1", "PathNodeArea_3", 0, "");
}
//////////////////////
// Run when leaving map
void OnLeave()
{
}