Auto-translated
How to create a script for an enemy hero so that it calculates (targets) a specified target.
objectName, heroName, priority). priority is the target priority for the AI; as I recall, it's a number.
-1 — The object's evaluation is significantly reduced.
0 — The object's evaluation remains unchanged.
1 — The object's evaluation is significantly increased. However, the AI will not risk heroes for this
object.
2 — The object's evaluation is equal to winning the game. The AI will ignore all dangers to
capture the object.
SetAIPlayerAttractor(objectName, playerID, priority). playerID is the player. This function increases the AI player's interest in an object.