Hello guys,
Id like some help on the for loops because it was a bit hard to understand for me at the wiki (im not english and dont have any experiences in c++) so in case you have some time i'd be nice if you could answer my questions.
for(int i= 1; i <6; i++)
{
AddEnemyPatrolNode("grunt_1", "PathNodeArea_"+i, 0, "");
}
What i (think i) understand:
- i is, what is added to the function each time it is called
- i </>x: as long as it lower than 6, it returns true. That means everything will restart, when it returns false
-"PathNodeArea_" +i says, that "i" will be added to the function esch time it is called.
What i dont understand:
- what is i++ for?
-what if i want the loop to start at node 16 and not 1? Id it "PathNodeArea_16"+i then?