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
Strange enemy behaviour
Zirg Offline
Junior Member

Posts: 14
Threads: 4
Joined: Feb 2011
Reputation: 0
#1
Strange enemy behaviour

Ive made an enemy encounter using a collidecallback.

As soon as the enemy spawns it attacks me, cause it spawns right next to me. But as soon as I run away and hide in the next room, he starts walking into the wall of his spawnroom, and doesn't start following his pathnodes for some reason.

Here's my script:
void TortureGruntOn (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_2", true);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_3", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_8", 0.0f, "");
}
(This post was last modified: 02-24-2011, 08:00 PM by Zirg.)
02-24-2011, 07:51 PM
Find
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#2
RE: Strange enemy behaviour

Have you put pathnodes in that specific room so he will walk around the wall?

Creator of The Dark Treasure.
02-24-2011, 08:55 PM
Website Find
Zirg Offline
Junior Member

Posts: 14
Threads: 4
Joined: Feb 2011
Reputation: 0
#3
RE: Strange enemy behaviour

(02-24-2011, 08:55 PM)junkfood2121 Wrote: Have you put pathnodes in that specific room so he will walk around the wall?

Yep I did Sad
02-24-2011, 08:57 PM
Find




Users browsing this thread: 1 Guest(s)