Frictional Games Forum (read-only)
[HELP] Enemy Pathing - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [HELP] Enemy Pathing (/thread-16563.html)



[HELP] Enemy Pathing - himynamebob1 - 06-28-2012

Is there a way to make an enemy repeat its path nodes?


RE: [HELP] Enemy Pathing - Damascus - 06-28-2012

You can refer to this recent thread for help on that:

http://www.frictionalgames.com/forum/thread-16458.html


RE: [HELP] Enemy Pathing - Streetboat - 06-28-2012

Yes, like this. Create a timer telling the enemies to patrol the nodes you want, then have that timer call upon itself at the end. They will loop the path until 'RemoveTimer' is called in another script.
Quote:void patrol_1(string &in asTimer)
{
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 0, "");
AddTimer("patrol_1", 2.0f, "patrol_1");
}