Search found 5 matches

by mugi
Thu Mar 27, 2025 1:36 am
Forum: Modding help
Topic: How to controllall enemies
Replies: 2
Views: 290

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 ...
by mugi
Sun Mar 23, 2025 4:53 pm
Forum: Modding help
Topic: How to controllall enemies
Replies: 2
Views: 290

How to controllall enemies

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.
by mugi
Sun Mar 23, 2025 8:57 am
Forum: Modding help
Topic: Specifying the biter's attack target
Replies: 4
Views: 516

Re: Specifying the biter's attack target

Thank you for your answer.
I was able to change is_military_target by setting the following in data.lua.

Code: Select all

data.raw['reactor']['nuclear-reactor'].allow_run_time_change_of_is_military_target = true
Thank you very match.
by mugi
Fri Mar 21, 2025 7:16 pm
Forum: Modding help
Topic: Specifying the biter's attack target
Replies: 4
Views: 516

Re: Specifying the biter's attack target

Thanks for answering. I tried but it didn't work.
I get the following exception: "entity nuclear-reactor (reactor) does not allow to change is_military_target run-time"

I guess "entity.prototype.allow_run_time_change_of_is_military_target" needs to be true, but the value is false and cannot be ...
by mugi
Wed Mar 19, 2025 2:39 am
Forum: Modding help
Topic: Specifying the biter's attack target
Replies: 4
Views: 516

Specifying the biter's attack target

Hallo, this is my first post. I'm a beginner who just started making modding recently.

Is it possible to specify which target a biter should prioritize attacking?

For example, I would like to prioritize attacking nuclear power plants, or attacking players who have specific items.

Thank you very ...

Go to advanced search