Frictional Games Forum (read-only)

Full Version: Is it possible to make a monster properly chase you?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Put pathnodes without scripting around the level. I think they follow the nodes if you are around a corner.
(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");
(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.
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
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.
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.