02-13-2012, 12:39 AM
Can anyone spot what's wrong here, cause I have tried SO many different things and every time I try to launch my custom sotry, the game finds something else to say what's the cause of the fatal errors I get..
//////////////////Foodstorage Grunt
void AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEnemyIsHallucination(string& asName, bool abX);
SetEntityActive("grunt_foodstorage", true);
ShowEnemyPlayerPosition(string& asName);
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_7", 0, "");
FadeEnemyToSmoke(string& asName, bool abPlaySound);
}
void OnLeave()
{
}
//////////////////Foodstorage Grunt
void AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEnemyIsHallucination(string& asName, bool abX);
SetEntityActive("grunt_foodstorage", true);
ShowEnemyPlayerPosition(string& asName);
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("grunt_foodstorage", "PathNodeArea_7", 0, "");
FadeEnemyToSmoke(string& asName, bool abPlaySound);
}
void OnLeave()
{
}