The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Strange enemy behaviour - by Zirg - 02-24-2011, 07:51 PM
RE: Strange enemy behaviour - by Linus Ågren - 02-24-2011, 08:55 PM
RE: Strange enemy behaviour - by Zirg - 02-24-2011, 08:57 PM



Users browsing this thread: 1 Guest(s)