What is "boolean"? Because I'm trying to make an enemy loop between 18 path nodes, but there is a fatal error...
for (int i = 1; i <11; i++)
{
int x = i;
if (i == 1)
{
x = 2;
}
if (i = 18)
{
x = 4;
}
if (i != 1 || i != 18)
{
x = 0;
}
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1"+17, 18, "");
}
It says that there it needs to be something of boolean type, and I don't know what is it... Please, help?!
(This post was last modified: 12-05-2011, 06:59 PM by Victor.)
(12-06-2011, 01:58 AM)Your Computer Wrote: The issue is if (i = 18). Instead of providing a boolean operator, you made a declaration within the if statement.