I have unscripted PathNodes for a water lurker which seems to work just fine. If I'm at the opposite end of the map, it can navigate around all obstacles and walls and make it to my position. But the same thing can't be said about my Grunt Monsters. For some reason when they chase, they just can't seem to navigate around walls and get stuck, ultimately making them disappear.
I'm just wondering if there's something I'm missing or not scripting right.
I have path nodes set up nicely and close together so it should find me easily.
It's simple code.
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_4", "FUNCTION3", true, 1); //activates the monster.
}
//////////
void FUNCTION3 (string &in asParent, string &in asChild, int alState)
{
SetPropHealth("mansion_1", 0.0f);
SetEntityActive("servant_grunt_1", true);
ShowEnemyPlayerPosition("servant_grunt_1");
}
The code and picture should sum up my conundrum.