Skip to content

Scripts for beginners.

User Avatar
#183
Auto-translated
This is available:
void SetAIPlayerAttractor( sObjectName, nPlayerID, nPriority )

Sets an "attraction point" for player nPlayerID on the object with the name sObjectName. The player's heroes will run around the object, periodically returning to it. They will return more frequently the higher the value of nPriority. The last parameter can take values from -1 to 2.

void SetAIHeroAttractor( sObjectName, sHeroName, nPriority )

This function is similar to SetAIPlayerAttractor, but it only works for a single hero with the name sHeroName.
 

К А
Стикеры GBF в Telegram