Seems like
Code:
int32 BotFollowDistance = atoi(sep->arg[2]);
which you have already tried, should work, however you will also want to use
Code:
c->GetTarget()->SetFollowDistance(BotFollowDistance);
rather than just
Code:
SetFollowDistance(BotFollowDistance);