Frictional Games Forum (read-only)

Full Version: Amnesia Monster PathNodes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
ShowEnemyPlayerPosition disregards path nodes.
(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?
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.