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
Monster PathNodes Problem
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#1
Monster PathNodes Problem

My problem is this, when the monster spawns and it moves to the next pathnode. It stops for about 2 seconds before moving onto the next one and so forth for all of them.

void MonsterFunction2(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("enemy_suitor_1", true);
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_26", 1.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_16", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_17", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_18", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_19", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_20", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_21", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_22", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_23", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_24", 0.0f, "");
    AddEnemyPatrolNode("enemy_suitor_1", "PathNodeArea_25", 0.0f, "");
}

I don't know why they are doing this, if please anyone can explain what I'm doing wrong or if their are any known bugs/glitches with path nodes.
(This post was last modified: 07-21-2011, 05:00 AM by Rapture.)
07-21-2011, 03:22 AM
Find
Ouroboros Offline
Junior Member

Posts: 20
Threads: 0
Joined: Jul 2011
Reputation: 0
#2
RE: Monster PathNodes Problem

You don't need to add all those patrol nodes actually, place them about an enemy length apart and then just add the ones you want him to stop at. As long as they're close enough to be connected your enemy will be able to use them to help him move towards the one that was added. And usually it seems suggested that you place some all around your level so he can chase the player more effectively.
(This post was last modified: 07-21-2011, 04:46 AM by Ouroboros.)
07-21-2011, 04:45 AM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#3
RE: Monster PathNodes Problem

(07-21-2011, 04:45 AM)Ouroboros Wrote: You don't need to add all those patrol nodes actually, place them about an enemy length apart and then just add the ones you want him to stop at. As long as they're close enough to be connected your enemy will be able to use them to help him move towards the one that was added. And usually it seems suggested that you place some all around your level so he can chase the player more effectively.
Tyvm that fixed it up!

07-21-2011, 05:00 AM
Find




Users browsing this thread: 1 Guest(s)