Author Topic: how to make use of AIPlayer's hFollowPlayer command?  (Read 391 times)

i'm trying to use the command, as such:

Code: [Select]
%bot.hFollowPlayer(findClientByName("me").player);
but the bot just turns around, it doesn't follow me, or look at me, or anything


From Bot_Hole/holes.cs/AIPlayer::hFollowPlayer
Code: [Select]
// if we can no longer damage the thing we're following let's stop following them
if( !miniGameCanDamage( %obj, %targ ) )
{
%obj.hFollowing = 0;

if( %obj.hEmote )
%obj.emote(wtfImage);

%obj.hClearMovement();

return;
}

Im gonna take a guess and say that that's your problem. You must be in a minigame.

I find that the hole bot code isn't very reusable, unfortunately.