[SCRIPT] Looping Monster Path? - 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: [SCRIPT] Looping Monster Path? (/thread-14014.html) |
Looping Monster Path? - BadCoverMan - 03-15-2012 Hey there, I'm looking to have a monster continuously walk around a certain path. I know how to move him from each path node to the next, but then he disappears after the last one. I know it's different than just using "AddEnemyPatrolNode" over and over again. Any help would be appreciated. Here's my script. Spoiler below!
RE: Looping Monster Path? - ClayPigeon - 03-15-2012 void ActivateBrute(string &in asEntity) { PlayMusic(...); SetEntityActive(...); for(; //That means an infinite loop, with no condition or danger of stopping. { for(int i = 1; i < 8; i++) { AddEnemyPatrolNode("brute_1", "Path_"+i, 0, ""); } } } RE: Looping Monster Path? - Your Computer - 03-16-2012 Using enemy_suiter_basile or enemy_suiter_malo should work so long as the player is within the monster's activation distance. |