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
Urgently need help, loop monster path.
Mojake Offline
Junior Member

Posts: 7
Threads: 6
Joined: Mar 2012
Reputation: 0
#1
Urgently need help, loop monster path.

I read the wiki on pathnodes but I really don't understand it. I'm still pretty new to scripting.

I have 4 pathnodes that a monster follows, then I want it to follow; 5,6,7,8 in a continuous loop but I really can't get my head around it.

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1",
for (int i = 1; i <11; i++)
{
int x = i;
if (i == 1)
{
x = 2;
}
if (i = 10)
{
x = 4;
}
if (i != 1 || i != 10)
{
x = 0;
}
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_"+i, x, "");
}
}
That's what the wiki says about pathnodes but I don't understand what values stand for and how to manipulate them to suit me. Would really appreciate some help here, it's been bugging me for 2 hours Sad
03-17-2012, 11:34 AM
Find


Messages In This Thread
Urgently need help, loop monster path. - by Mojake - 03-17-2012, 11:34 AM



Users browsing this thread: 1 Guest(s)