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
Monster multiple node path problem.
AlexRobillard Offline
Junior Member

Posts: 41
Threads: 5
Joined: Jun 2011
Reputation: 0
#1
Monster multiple node path problem.

I want to make a single monster walk on the path I choose, which involves going around corners then stopping, then going back. How would I do this?
This is the code that I am using (Monster2):
void OnStart()
{
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger" , "MonsterWalk1" , true , 1);
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger2" , "MonsterWalk2" , true , 1);
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger" , "AddEnemyPatrolNode" , true , 1);
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger2" , "AddEnemyPatrolNode2" , true , 1);
}

void MonsterWalk1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster1" , true);
AddEnemyPatrolNode("Monster1", "PathNodeArea_35", 3, "");
}

void MonsterWalk2(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster2" , true);
AddEnemyPatrolNode2("Monster2", "PathNodeArea_20", 3, "");
AddEnemyPatrolNode2("Monster2", "PathNodeArea_4", 10, "");
AddEnemyPatrolNode2("Monster2", "PathNodeArea_58", 1, "");
AddEnemyPatrolNode2("Monster2", "PathNodeArea_59", 2, "");
}
I get errors on the path nodes when I start the game (crashes).
06-30-2011, 10:19 PM
Find


Messages In This Thread
Monster multiple node path problem. - by AlexRobillard - 06-30-2011, 10:19 PM
RE: Monster multiple node path problem. - by Kyle - 06-30-2011, 11:16 PM



Users browsing this thread: 1 Guest(s)