[LVL ED] [SOLVED]Enemy does not follow pathnodes. Only aims for the end pathnode. - 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: [LVL ED] [SOLVED]Enemy does not follow pathnodes. Only aims for the end pathnode. (/thread-30097.html) |
[SOLVED]Enemy does not follow pathnodes. Only aims for the end pathnode. - FlawlessHappiness - 06-07-2015 Hello. I seem to have stumbled into something I don't understand. If I add a pathnode to an enemy, that enemy should use other pathnodes to get to that pathnode right? That's not what is happening on my screen. Here you see I clearly added the pathnodes to my level. The nodes furthest to the right are the end nodes. Here you see what's happening in game. He's facing a wall. The fact that he tries to go through it, and the fact that the other enemies found their node implies that their end node is already added, but he doesn't follow the not-added nodes. Here is how I'm adding the nodes. (Though it shouldn't really matter). PHP Code: for(int i=1;i<=3;i++)AddEnemyPatrolNode("RaceGrunt_"+i, "PathNodeEnd_"+i, 0.0f, ""); I have messed with the animation multiplier, and the walking animation, and the walk speed of the grunt. All of those seem to work fine, and I don't think those are the cause. Has anybody experienced the same thing? RE: Enemy does not follow pathnodes. Only aims for the end pathnode. - Mudbill - 06-07-2015 I'm still not certain how path nodes really work, but I think you should manually add every node that clears a corner. The ones in between may just support their way to it. RE: Enemy does not follow pathnodes. Only aims for the end pathnode. - FlawlessHappiness - 06-07-2015 (06-07-2015, 01:21 AM)Mudbill Wrote: I'm still not certain how path nodes really work, but I think you should manually add every node that clears a corner. The ones in between may just support their way to it. I don't believe so, but yea, I could do that... RE: Enemy does not follow pathnodes. Only aims for the end pathnode. - FlawlessHappiness - 06-07-2015 So I figured out the problem. I didn't place enough pathnodes. RE: [SOLVED]Enemy does not follow pathnodes. Only aims for the end pathnode. - Casotime1999 - 08-12-2015 no because if the int < certain number the monster run at the bigger value or if it is contrary example PHP Code: void OnStart() RE: [SOLVED]Enemy does not follow pathnodes. Only aims for the end pathnode. - FlawlessHappiness - 08-12-2015 I'm not sure why you bumped this thread. Are you having a problem with your monster? You say you placed 5 pathnodes, and it loops 5 of them. That makes sense, doesn't it? Of course, the monster cannot reach 10 pathnodes, if you've only placed 5. |