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



Amnesia Monster PathNodes - Cyphermur9t - 03-31-2013

I have unscripted PathNodes for a water lurker which seems to work just fine. If I'm at the opposite end of the map, it can navigate around all obstacles and walls and make it to my position. But the same thing can't be said about my Grunt Monsters. For some reason when they chase, they just can't seem to navigate around walls and get stuck, ultimately making them disappear.

I'm just wondering if there's something I'm missing or not scripting right.

I have path nodes set up nicely and close together so it should find me easily.

Spoiler below!
[Image: helpgi.jpg]

It's simple code.
PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player""ScriptArea_4""FUNCTION3"true1); //activates the monster.
}

//////////

void FUNCTION3 (string &in asParentstring &in asChildint alState)
{
    
SetPropHealth("mansion_1"0.0f);
    
SetEntityActive("servant_grunt_1"true);
    
ShowEnemyPlayerPosition("servant_grunt_1");


The code and picture should sum up my conundrum.


RE: Amnesia Monster PathNodes - Your Computer - 03-31-2013

ShowEnemyPlayerPosition disregards path nodes.


RE: Amnesia Monster PathNodes - Cyphermur9t - 03-31-2013

(03-31-2013, 09:10 AM)Your Computer Wrote: ShowEnemyPlayerPosition disregards path nodes.

So is there a way to make a monster chase a player around while not getting stuck anywhere?


RE: Amnesia Monster PathNodes - FlawlessHappiness - 03-31-2013

Don't think so...
You can always make him spawn right behind the player. Problem is, would it be fair? And the player would also be able to escape the chase.