Unknown_Hero Mage
![Mage Mage](https://i.imgur.com/T6XfYnc.gif)
![Unknown_Hero](https://i.imgur.com/f6yn7Vg.png)
Messages : 780 Quality Points : 78 Registration Date : 2015-09-06
![[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Empty](https://2img.net/i/empty.gif) | Subject: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes 2019-01-14, 08:53 | |
| @DarmaniWhen I was designing the script for the Unknown Mod, I noticed that heroes controlled by AI players did not trigger the "OnLocationVisit (type, x, y)" function when they moved to a location. This poses a problem because the script is supposed to give bonuses also for heroes controlled by the AI. And I wish I could write a specific code for AI heroes when they visit different locations with, for example, a function like "IsHeroControlledByAI (hero)" or "AiPlayer ()". Is it an oversight? ![Smile](/users/1112/86/44/25/smiles/3275789839.gif) | |
|
Darmani Master Modder
![Master Modder Master Modder](https://i.imgur.com/IpF8FfL.gif)
![Darmani](https://2img.net/u/1112/86/44/25/avatars/170-23.png)
Messages : 289 Quality Points : 47 Registration Date : 2014-12-27
![[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Empty](https://2img.net/i/empty.gif) | Subject: Re: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes 2019-01-14, 15:36 | |
| This is correct. I've updated the documentation to make this clear, and added something to our Ideas list to make this function also work for the AI. | |
|
Unknown_Hero Mage
![Mage Mage](https://i.imgur.com/T6XfYnc.gif)
![Unknown_Hero](https://i.imgur.com/f6yn7Vg.png)
Messages : 780 Quality Points : 78 Registration Date : 2015-09-06
![[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Empty](https://2img.net/i/empty.gif) | Subject: Re: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes 2019-01-15, 03:42 | |
| Okay, thank you so much. ![Smile](/users/1112/86/44/25/smiles/3275789839.gif) | |
|
Sponsored content
![[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Empty](https://2img.net/i/empty.gif) | Subject: Re: [Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes ![[Ironfist ver 1.3.0] OnLocationVisit(type, x, y) and AI-controlled heroes Icon_minitime](https://2img.net/i/fa/icon_minitime.gif) | |
| |
|