Frictional Games Forum (read-only)

Full Version: Strange enemy behaviour
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
Code:
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, "");
}
Have you put pathnodes in that specific room so he will walk around the wall?
(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