Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help [SOLVED]Enemy does not follow pathnodes. Only aims for the end pathnode.
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
[SOLVED]Enemy does not follow pathnodes. Only aims for the end pathnode.

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.
[Image: c575d20306.jpg]

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.
[Image: 70c6ddb43d.jpg]

Here is how I'm adding the nodes. (Though it shouldn't really matter).
PHP Code: (Select All)
for(int i=1;i<=3;i++)AddEnemyPatrolNode("RaceGrunt_"+i"PathNodeEnd_"+i0.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?

Trying is the first step to success.
(This post was last modified: 06-07-2015, 03:04 AM by FlawlessHappiness.)
06-07-2015, 12:13 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Enemy does not follow pathnodes. Only aims for the end pathnode.

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.

06-07-2015, 01:21 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: Enemy does not follow pathnodes. Only aims for the end pathnode.

(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...

Trying is the first step to success.
06-07-2015, 01:32 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Enemy does not follow pathnodes. Only aims for the end pathnode.

So I figured out the problem.

I didn't place enough pathnodes.

Trying is the first step to success.
06-07-2015, 03:03 AM
Find
Casotime1999 Offline
Junior Member

Posts: 23
Threads: 6
Joined: Mar 2015
Reputation: 0
#5
RE: [SOLVED]Enemy does not follow pathnodes. Only aims for the end pathnode.

no because if the int < certain number the monster run at the bigger value or if it is contrary example
PHP Code: (Select All)
void OnStart()
{
SetEntityActive("grunt"true);
for (
int i=0;i<=10i++) AddEnemyPatrolNode("grunt""PathNodeArea_" +0.1"");


but I placed just 5 path node it loop 5 of them instead 10
(This post was last modified: 08-12-2015, 12:10 PM by Casotime1999.)
08-12-2015, 12:09 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: [SOLVED]Enemy does not follow pathnodes. Only aims for the end pathnode.

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.

Trying is the first step to success.
08-12-2015, 04:31 PM
Find




Users browsing this thread: 1 Guest(s)