Force Bitters to Attack - They stop?

Place to get help with not working mods / modding interface.
Zholtar
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Jun 15, 2017 9:45 am
Contact:

Force Bitters to Attack - They stop?

Post by Zholtar »

Hello guys!

I have some issues with forcing bitters to attack a target.
They well start to move but then, they stop.

Tried with defines.command.attack and defines.commang.go_to_location ... but doesnt seems to work.

Code: Select all

surface.set_multi_command{command = {type=defines.command.go_to_location, destination={0,0}, distraction=defines.distraction.by_enemy},unit_count = 2000, unit_search_distance = 50000}
or

Code: Select all

surface.set_multi_command{command = {type=defines.command.attack, target=event.cause, distraction=defines.distraction.by_enemy},unit_count = 2000, unit_search_distance = 50000}
Tried to force make this again and again every 10s, but doesn seems to work very well. Bitters stay at home.

Tried too a code massive pollute on every chunk of the map... Some lags of course while some seconds... And then... nothing? No attack from bitters.

I'm not on peacefull. Starting this game, they were some bitters in the area which came attack my base due to pollution.


My final idea is to make a mod which, paste a playedTime, force some bitters waves on the most pollute locations from the player.
Post Reply

Return to “Modding help”