Frictional Games Forum (read-only)
Strange enemy behaviour - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Strange enemy behaviour (/thread-6704.html)



Strange enemy behaviour - Zirg - 02-24-2011

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:
Code:
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, "");
}



RE: Strange enemy behaviour - Linus Ă…gren - 02-24-2011

Have you put pathnodes in that specific room so he will walk around the wall?


RE: Strange enemy behaviour - Zirg - 02-24-2011

(02-24-2011, 08:55 PM)junkfood2121 Wrote: Have you put pathnodes in that specific room so he will walk around the wall?

Yep I did Sad