looks like it uses
%bot.hFollowType
%bot.hKeepFollowing
%bot.hFollowingNoDamage
and in the looping following code
if(%obj.hFollowingNoDamage == 0 && %obj.hFollowType != 1 && %obj.hFollowType != 2)
return;
so i suspect can just set all 3 values to 0 and hope it stops following?
function AIPlayer::stopFollowPlayer(%bot)
{
%bot.hFollowType = 0;
%bot.hKeepFollowing = 0;
%bot.hFollowingNoDamage = 0;
}
registerOutputEvent(Bot, "StopFollowPlayer", 1);
will test if i did the event syntax correctly in a bit, hopefully that works though if you put it in a server.cs in a folder in addons alongside a description.txt