1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-10 00:43:27 +02:00
ComfyFactorio/maps/biter_battles_v2/ai.lua
2019-03-14 18:06:39 +01:00

29 lines
638 B
Lua

local event = require 'utils.event'
local ai = {}
ai.send_near_biter_to_silo = function()
if not global.rocket_silo then return end
game.surfaces["surface"].set_multi_command({
command={
type=defines.command.attack,
target=global.rocket_silo["north"],
distraction=defines.distraction.none
},
unit_count = 8,
force = "enemy",
unit_search_distance=64
})
game.surfaces["surface"].set_multi_command({
command={
type=defines.command.attack,
target=global.rocket_silo["south"],
distraction=defines.distraction.none
},
unit_count = 8,
force = "enemy",
unit_search_distance=64
})
end
return ai