Are grunts programmed to disappear once they finish a path? - 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: Are grunts programmed to disappear once they finish a path? (/thread-16552.html) |
Are grunts programmed to disappear once they finish a path? - Cyfiawn - 06-28-2012 Hello, I thought I read somewhere that once a Grunt finished it's Path (Path Nodes), if the player isn't looking at it, it should disappear? Or do I have to program it disappearing myself? I currently have this, which triggers from a player walking into an area: PHP Code: void ZombieTrigger(string &in asParent, string &in asChild, int alState){ Once it reaches node 16, it just starts walking aimlessly into a wall, and sometimes bugging out and spinning around in circles. I have double and triple checked the path nodes, and they are all correct, I'm just confused as to why he doesn't disappear after touching node 16? Thanks, Cyfiawn EDIT 2.1: Edit 1+2 didn't work...gunna remake the nodes and script from scratch. >_> RE: Are grunts programmed to disappear once they finish a path? - MaZiCUT - 06-28-2012 I think so, but remember to keep your scripts clean too, it will be much easier to work that way. Keep them in lines like this: void blabla() { script script script event } RE: Are grunts programmed to disappear once they finish a path? - Cyfiawn - 06-28-2012 The script was clean, it was just copy+paste that didn't work to well. I've formatted it now on the post. Still getting the issue of him not disappearing though. :/ RE: Are grunts programmed to disappear once they finish a path? - ApeCake - 06-28-2012 I remember in my first test map my grunt was bugging like a mad man. Anyways, the monster should disappear if it has finished walking all the path nodes, the player isn't looking at it and is a specific distance away from it. This video is really informative about how the monsters work; it's worth your time. RE: Are grunts programmed to disappear once they finish a path? - Cyfiawn - 06-28-2012 (06-28-2012, 02:37 PM)ApeCake Wrote: I remember in my first test map my grunt was bugging like a mad man. Anyways, the monster should disappear if it has finished walking all the path nodes, the player isn't looking at it and is a specific distance away from it. This video is really informative about how the monsters work; it's worth your time.Thanks for the reply. I turned on Dev mode, and found out I was within the range (a blue circle). All is fixed and (hopefully) working. Done several tests, seems fine. |