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
Enemy Patrol
Jumpman Offline
Junior Member

Posts: 31
Threads: 10
Joined: May 2011
Reputation: 0
#1
Enemy Patrol

Enemy Patrol

I cant get the enemy to patrol the path I made, he just stands there after he spawns..

In the editor I used pathnode from the monster to the end..

The scripting is..

void OnStart()
{

AddEntityCollideCallback("Player", "EnemyTrigger", "CollideEnemyTrigger", true, 0);

AddEntityCollideCallback("Infected", "EnemyEnd", "GruntEndMusic", true, 1);

}

void OnEnter()
{
}

void CollideEnemyTrigger(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Infected", true);
GiveSanityDamage(0, true);
}

void EnemyFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Infected", true);
AddEnemyPatrolNode("Infected", "PathNodeArea_1", 0.0f, "");
AddEnemyPatrolNode("Infected", "PathNodeArea_123", 0.0f, "");
}

void OnLeave()
{
}


So what Im I doing wrong? Plz help.
Thx
05-13-2011, 01:15 PM
Find


Messages In This Thread
Enemy Patrol - by Jumpman - 05-13-2011, 01:15 PM
RE: Enemy Patrol - by Khyrpa - 05-13-2011, 01:17 PM
RE: Enemy Patrol - by Jumpman - 05-13-2011, 01:42 PM
RE: Enemy Patrol - by Jumpman - 05-13-2011, 03:01 PM
RE: Enemy Patrol - by ferryadams10 - 05-14-2011, 10:10 AM



Users browsing this thread: 1 Guest(s)