you can set them to interpolate the player's position but create a variable so that if there is an enemy nearby it will attack the enemy, that is, it will only interpolate if there is no enemy nearby and you can regulate the distance by the interpolation time