Code:
/script SetCVar("TargetNearestDistance", 20) 
/targetenemy 
/script SetCVar("TargetNearestDistance", 41)


Could help with that problem?