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