Frictional Games Forum (read-only)
Making an enemy follow you but not kill 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: Making an enemy follow you but not kill you? (/thread-10872.html)

Pages: 1 2


RE: Making an enemy follow you but not kill you? - flamez3 - 10-21-2011

(10-21-2011, 07:37 AM)palistov Wrote: Do you want the monster to actively follow the player around like a companion? Or do you want it to patrol the general area the player is in?

If the prior is true, you can probably do this by changing the grunt's vision ranges to 0, as well as its auto-hunt range to 0. Maybe that will let it follow the player without attacking because A) the grunt will hear and follow the player's footsteps and B) the player can't see the player so it doesn't hunt, and since auto-hunt is 0 (hopefully disabled) it won't attack.

If the latter is what you want, you'll need to implement some specific functions which control and tell the monster where to go. You can use collide callbacks to do so. Research a little bit, there are plenty of tutorials out there (I myself have written one) which give you some good insight on how to control monsters.
I already found out how to do by myself XD I just made the attacking range 0 and he justs follow you Big Grin