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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pathnode help
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#1
Pathnode help

How do I make my monster disappear after it reaches a certain node?
I've tried filling in the last thread and making

For exapmle

void OnStart()
{
AddEnemyPatrolNode("Monster", "Node_1", 2, "");
AddEnemyPatrolNode("Monster", "Node_2", 2, "");
AddEnemyPatrolNode("Monster", "Node_3", 2, "");
AddEnemyPatrolNode("Monster", "Node_4", 2, "");
AddEnemyPatrolNode("Monster", "Node_5", 2, "");
AddEnemyPatrolNode("Monster", "Node_6", 2, "");
AddEnemyPatrolNode("Monster", "Node_7", 2, "MyFunc");
}


void MyFunc(string& asEntity)
{
SetEnemyDisabled("Monster", true);
}

They don't seem to work. Maybe I'm using a faulty function? Or I'm simply not putting the correct thing in that box

Please help

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
(This post was last modified: 08-09-2011, 01:27 PM by ObsidianLegion.)
08-09-2011, 01:24 PM
Find


Messages In This Thread
Pathnode help - by ObsidianLegion - 08-09-2011, 01:24 PM
RE: Pathnode help - by HumiliatioN - 08-09-2011, 01:40 PM
RE: Pathnode help - by ObsidianLegion - 08-09-2011, 02:52 PM
RE: Pathnode help - by HumiliatioN - 08-09-2011, 05:08 PM
RE: Pathnode help - by Acies - 08-09-2011, 01:43 PM



Users browsing this thread: 1 Guest(s)