Ive made an enemy encounter using a collidecallback.
As soon as the enemy spawns it attacks me, cause it spawns right next to me. But as soon as I run away and hide in the next room, he starts walking into the wall of his spawnroom, and doesn't start following his pathnodes for some reason.
Here's my script:
void TortureGruntOn (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_2", true);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_3", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_8", 0.0f, "");
}