Code:
// User forced a Waypoint as a Goal ?
if (g_iDebugGoalIndex != -1)
{
if (BotGetSafeTask (pBot)->iData != g_iDebugGoalIndex)
{
DeleteSearchNodes (pBot);
BotGetSafeTask (pBot)->iData = g_iDebugGoalIndex;
}
}
I never tried it, but seems it should work, when You will write this:
pb debuggoal -1
Another part of code says something about this - You need manually disable "ignore enemies" , because switching on debuggoal mode (by writting some index >=0 ) - it's switching to on "ignore enemies" function.
BTW - @PMB - Thanks for fixing "code" function.