Page 1 of 1

How to controllall enemies

Posted: Sun Mar 23, 2025 4:53 pm
by mugi
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.

Re: How to controllall enemies

Posted: Tue Mar 25, 2025 11:07 am
by Natha
Did you have a look into the SE code how it's done?

Re: How to controllall enemies

Posted: Thu Mar 27, 2025 1:36 am
by mugi
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.