Frictional Games Forum (read-only)
Zombies getting stuck when chasing you? - 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: Zombies getting stuck when chasing you? (/thread-5415.html)



Zombies getting stuck when chasing you? - morgoe - 11-12-2010

I didn't notice this in the Amnesia game, but in my custom maps, the zombies keep getting stuck on door frames, on stairs, basically anywhere that's not a linear A->B. If I come back to him and lead him around he's fine, but obviously that's not something I want. What's going on? It's a survival map so I need the zombie to chase you everywhere, not just on a set path.

Also, is there a way to move the zombie to a diff place? I haven't found it in the Script Functions.


RE: Zombies getting stuck when chasing you? - Gamemakingdude - 11-12-2010

(11-12-2010, 09:25 AM)morgoe Wrote: I didn't notice this in the Amnesia game, but in my custom maps, the zombies keep getting stuck on door frames, on stairs, basically anywhere that's not a linear A->B. If I come back to him and lead him around he's fine, but obviously that's not something I want. What's going on? It's a survival map so I need the zombie to chase you everywhere, not just on a set path.

Also, is there a way to move the zombie to a diff place? I haven't found it in the Script Functions.

Maybe try some nodes or look at jonez's survival custom story.


RE: Zombies getting stuck when chasing you? - Chilton - 11-12-2010

Add in more nodes, and for christ sake make sure theyre connected. To see how the nodes are ordinated, go into MapView, and turn on nodes, the line connecting nodes show how theyre connected. They should avoid any obstacles in a 2x2 grid area.


RE: Zombies getting stuck when chasing you? - morgoe - 11-12-2010

(11-12-2010, 10:31 AM)Chilton Wrote: Add in more nodes, and for christ sake make sure theyre connected. To see how the nodes are ordinated, go into MapView, and turn on nodes, the line connecting nodes show how theyre connected. They should avoid any obstacles in a 2x2 grid area.

Thanks for this, I didn't realise you needed to add nodes for AI to work. They still seemed to be getting stuck on stairs, so I added like 3 for each step - is this right? Can you have too many nodes?


RE: Zombies getting stuck when chasing you? - Chilton - 11-12-2010

(11-12-2010, 11:30 AM)morgoe Wrote:
(11-12-2010, 10:31 AM)Chilton Wrote: Add in more nodes, and for christ sake make sure theyre connected. To see how the nodes are ordinated, go into MapView, and turn on nodes, the line connecting nodes show how theyre connected. They should avoid any obstacles in a 2x2 grid area.

Thanks for this, I didn't realise you needed to add nodes for AI to work. They still seemed to be getting stuck on stairs, so I added like 3 for each step - is this right? Can you have too many nodes?

You can, yes. Stairs can be tricky, but the key is to have one for each step, and if scripting have no movement delays.