Auto-translated
Try this:
SetAIHeroAttractor([script name of your hero (in quotes)], [script name of the enemy hero (in quotes)], 2);