Frictional Games Forum (read-only)
Question About 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Question About pathnodes (/thread-6399.html)



Question About pathnodes - Crunchygoblin - 01-28-2011

I know how to make a monster follow path nodes and it will use the nodes to go around things. What im wondering is, will the monster still use the path nodes to get to you, if there isn't any script related to it.

My problem is when my monster follows me, its kinda retarded and gets stuck in the door frame or on a corner.


RE: Question About pathnodes - Shev - 01-28-2011

(01-28-2011, 02:39 AM)Crunchygoblin Wrote: I know how to make a monster follow path nodes and it will use the nodes to go around things. What im wondering is, will the monster still use the path nodes to get to you, if there isn't any script related to it.

My problem is when my monster follows me, its kinda retarded and gets stuck in the door frame or on a corner.

Possibly, but the AI programing is really limited


RE: Question About pathnodes - Vradcly - 01-28-2011

I also have a question regarding the same topic, better take it here then make a new thread...

When an enemy has followed all the nodes in its path, is there a way to restore the path so it can follow it again?

I have somewhat of a labyrinth and I want the monsters to reappear at certain areas inside the labyrinth, but as it is now, it works great as long as the monsters have not completed their paths. When that happens and the monster is reactivated because the player moved through that place of the labyrinth again the monsters only appear for a very short time and then disappears because they have completed their paths. What I want is the monsters to (if they have no more path nodes to follow), start making their way back again, or possibly teleport to their start position and redo the path following.

Anyone have an idea on how to do that?


RE: Question About pathnodes - Frontcannon - 01-28-2011

I think the game 'delets' the pathnodes once the monster assigned to them has completed the path.

What I would do: make a CollideCallback at the end of the path for the monster, and when it collides with it the callback function restores the pathnodes again and spawns a new monster at the start.


RE: Question About pathnodes - Crunchygoblin - 01-28-2011

About what I'm asking, If I put down a set of pathnodes, but don't have any scrpting related to them, will the monster skill use them to navigate around obstacles when chasing you?


RE: Question About pathnodes - Frontcannon - 01-28-2011

(01-28-2011, 09:21 PM)Crunchygoblin Wrote: About what I'm asking, If I put down a set of pathnodes, but don't have any scrpting related to them, will the monster skill use them to navigate around obstacles when chasing you?

Why don't you just try it out?


RE: Question About pathnodes - theDARKW0LF - 01-28-2011

(01-28-2011, 10:57 AM)Vradcly Wrote: I also have a question regarding the same topic, better take it here then make a new thread...

When an enemy has followed all the nodes in its path, is there a way to restore the path so it can follow it again?

I have somewhat of a labyrinth and I want the monsters to reappear at certain areas inside the labyrinth, but as it is now, it works great as long as the monsters have not completed their paths. When that happens and the monster is reactivated because the player moved through that place of the labyrinth again the monsters only appear for a very short time and then disappears because they have completed their paths. What I want is the monsters to (if they have no more path nodes to follow), start making their way back again, or possibly teleport to their start position and redo the path following.

Anyone have an idea on how to do that?

Just simply add a timer and when part of that timer is reached, he can get reassigned the path back to where he started.


RE: Question About pathnodes - Vradcly - 01-30-2011

Oh shit, it works to good, now im not going back in that labyrinth again Big Grin. I used the timer solution because I didn't want to put the player into the situation where he/she is chased by a monster and the monster follows the player right into the area where it sets another monster active Smile. Although I think it would be pretty cool if the monster also disappears and everything seems alright (player thinks it was an illusion), but right after when walking down the corridor faces the monster again, how did it get there Big Grin. Awesome^^...well well, ill save that one for another map...

Thx for the help Smile.