hello. I asked about this before but I didn't get any answers. I Kinda wanted to make a grunt break the door and come out after me. but he doesn't come out. can anyone look at my script?
void OnStart()
{
AddEntityCollideCallback("Player", "ActiveScareGruntArea" , "ScareGrunt", true , 1);
AddEntityCollideCallback("ScareGrunt", "BreakMonsterDoor", "ScareGrunt", true, 1);
}
void ScareGrunt(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("ScareGrunt", true);
AddEnemyPatrolNode("ScareGrunt", "PathNodeArea_1", 1, "");
AddEnemyPatrolNode("ScareGrunt", "PathNodeArea_2", 1, "");
AddEnemyPatrolNode("ScareGrunt", "PathNodeArea_3", 1, "");
}
void BreakMonsterDoorTimer(string &in asEntity)
{
AddTimer("BreakDoor", 2.0f, "BreakMonsterDoor");
SetEntityActive("ScareGrunt", true);
AddQuest("PortalFormula1", "PortalFormula1");
}
void BreakMonsterDoor(string &in asTimer)
{
SetEntityActive("MonsterDoor", true);
SetEntityActive("MonsterDoor2", true);
PlaySoundAtEntity("WoodScare", "lurker_hit_wood.snt", "Player", 0.0f, false);
PlaySoundAtEntity("GruntScare", "grunt_notice_long.snt", "Player", 0.0f, false);
}
void DespawnScareGrunt(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("ScareGrunt", false);
}
void OnLeave
{
}