Hello.
In the Space Exploration MOD, when you use a plague-bomb, all enemies will attack you regardless of distance, does anyone know how to implement the same or a similar behavior?
Thank you very match.
How to controllall enemies
Re: How to controllall enemies
Did you have a look into the SE code how it's done?
Re: How to controllall enemies
Thanks for comment. Yes I did, but I didn't understand.
Regarding how this could be achieved, we anticipated two cases:
(1)Increase enemy UnitPrototype.vision_distance as much as possible.
(2)Makes enemies perceive the damage over time from plague-bomb as an attack from the player.
However, in the case of (1), the maximum value of vision_distance could only be set to 100, and it could not be changed runtime.
Regarding (2), I was not sure what specific settings were required to make this possible.
If you know what I should check, could you let me know?
Thank you very much.
Regarding how this could be achieved, we anticipated two cases:
(1)Increase enemy UnitPrototype.vision_distance as much as possible.
(2)Makes enemies perceive the damage over time from plague-bomb as an attack from the player.
However, in the case of (1), the maximum value of vision_distance could only be set to 100, and it could not be changed runtime.
Regarding (2), I was not sure what specific settings were required to make this possible.
If you know what I should check, could you let me know?
Thank you very much.