Frictional Games Forum (read-only)
Monster PathNodes Problem - 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: Monster PathNodes Problem (/thread-9277.html)



Monster PathNodes Problem - Rapture - 07-21-2011

My problem is this, when the monster spawns and it moves to the next pathnode. It stops for about 2 seconds before moving onto the next one and so forth for all of them.

Code:
void MonsterFunction2(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("enemy_suitor_1", true);
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_26", 1.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_16", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_17", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_18", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_19", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_20", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_21", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_22", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_23", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_24", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_25", 0.0f, "");
}

I don't know why they are doing this, if please anyone can explain what I'm doing wrong or if their are any known bugs/glitches with path nodes.


RE: Monster PathNodes Problem - Ouroboros - 07-21-2011

You don't need to add all those patrol nodes actually, place them about an enemy length apart and then just add the ones you want him to stop at. As long as they're close enough to be connected your enemy will be able to use them to help him move towards the one that was added. And usually it seems suggested that you place some all around your level so he can chase the player more effectively.


RE: Monster PathNodes Problem - Rapture - 07-21-2011

(07-21-2011, 04:45 AM)Ouroboros Wrote: You don't need to add all those patrol nodes actually, place them about an enemy length apart and then just add the ones you want him to stop at. As long as they're close enough to be connected your enemy will be able to use them to help him move towards the one that was added. And usually it seems suggested that you place some all around your level so he can chase the player more effectively.
Tyvm that fixed it up!