RE: Why is my custom story not working!?!?!?
well, it stopped with major errors, but now this:
///////////////////////
// Run when starting map
void OnStart()
{
PlayMusic("01_amb_darkness.ogg", true, 1.0f, 0, 0, true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "MonsterEnd", true, 1);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", bool ("abDeleteOnCollide", int (alStates)
),
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()
{
}
now it says "(25:2) Unexpected End Of File", so now i have no idea how to get rid of this. also, i thank you for fixing and explaining the problem adrianis. and i had to add extra things in order for it to stop saying problem here and problem there.
(This post was last modified: 12-03-2012, 05:18 PM by Gamerlord08.)
|