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
Patrol 2 enemy
nemero Offline
Junior Member

Posts: 2
Threads: 1
Joined: Sep 2012
Reputation: 0
#1
Patrol 2 enemy

Hi, I would like to do it on one map, patrol 2 enemies in other places. I created in level editor scriptarena 1 that make enemy 1 spawn. I found and applied to:

void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 4, "");
}

and it works. Now I would like to do that for the second place. I scriptarena 2 and the enemy2, patchnote 11-15. How to do to make it work, first and second together?
09-03-2012, 08:11 PM
Find


Messages In This Thread
Patrol 2 enemy - by nemero - 09-03-2012, 08:11 PM
RE: Patrol 2 enemy - by Steve - 09-03-2012, 08:29 PM
RE: Patrol 2 enemy - by The chaser - 09-03-2012, 09:57 PM
RE: Patrol 2 enemy - by nemero - 09-04-2012, 08:20 PM
RE: Patrol 2 enemy - by FlawlessHappiness - 09-04-2012, 08:25 PM



Users browsing this thread: 1 Guest(s)