Frictional Games Forum (read-only)
Is it possible to make a monster properly chase 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Is it possible to make a monster properly chase you? (/thread-20738.html)



Is it possible to make a monster properly chase you? - serbusfish - 03-14-2013

From what ive seen you can either make a monster walk along path nodes or run directly towards you. The latter works in straight corridors but if you happen to turn a corner the monster gets stuck on the wall! Is there any way to make a monster chase you are corners?


RE: Is it possible to make a monster properly chase you? - The chaser - 03-14-2013

Put pathnodes without scripting around the level. I think they follow the nodes if you are around a corner.


RE: Is it possible to make a monster properly chase you? - VeNoMzTeamHysterical - 03-25-2013

(03-14-2013, 03:30 PM)serbusfish Wrote: From what ive seen you can either make a monster walk along path nodes or run directly towards you. The latter works in straight corridors but if you happen to turn a corner the monster gets stuck on the wall! Is there any way to make a monster chase you are corners?

Yes its possible.
There is a script then the monster instant start chasing you hold on i check which one it is.

I think it was this.

ShowEnemyPlayerPosition("Monster_Name");


RE: Is it possible to make a monster properly chase you? - serbusfish - 03-26-2013

(03-14-2013, 03:49 PM)The chaser Wrote: Put pathnodes without scripting around the level. I think they follow the nodes if you are around a corner.

Ok I will try it cheers.

(03-25-2013, 04:51 PM)VeNoMzTeamHysterical Wrote:
(03-14-2013, 03:30 PM)serbusfish Wrote: From what ive seen you can either make a monster walk along path nodes or run directly towards you. The latter works in straight corridors but if you happen to turn a corner the monster gets stuck on the wall! Is there any way to make a monster chase you are corners?

Yes its possible.
There is a script then the monster instant start chasing you hold on i check which one it is.

I think it was this.

ShowEnemyPlayerPosition("Monster_Name");

No this just makes them run directly towards you, regardless of what obstructions might be in the way. So if you run round a corner they will more often than not get stuck on the wall.


RE: Is it possible to make a monster properly chase you? - tonitoni1998 - 03-28-2013

I think you would need an improved chasing system to do it exacly how you want it. You would need an AI. When you set entity info in your debug toolbar on, you can see the path of the enemy. When he sees you he instantly ignores all the other nodes and the player is the only pathnode. That means he will just run in your direction, only focusing on you.

You would have to make a system that calculates the shortest way around an obstacle, and let it put nodes around it. But i dont know how to do it Tongue


RE: Is it possible to make a monster properly chase you? - LulleBulle - 03-30-2013

What you could do (this is just a guess and only works if there's not multiple options as in crossings etc) is that you make pathnodes the same way as the player walks, put the wait time at each path node to 0 and during this time play the chase music. It would however just make the monster walk so I guess you would need to speed it up slightly.


RE: Is it possible to make a monster properly chase you? - PutraenusAlivius - 03-30-2013

Seriously? You guys don't know this? This is how i would do it.
1. Make a pathnode at the corner. Make sure it's a bit far so the monster won't get stuck in it.
2. Make the waiting time to 0.005
3. You're done!

@LulleBulle
You didn't mention the scripting.