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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange enemy behaviour
Author Message
Zirg Offline
Junior Member

Posts: 14
Joined: Feb 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Linus Ă…gren Offline
Senior Member

Posts: 309
Joined: Jan 2011
Reputation: 5
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Zirg Offline
Junior Member

Posts: 14
Joined: Feb 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)