RE: Why is my custom story not working!?!?!?
///////////////////////
// Run when entering 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);
}
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()
{
}
|