1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-24 03:47:58 +02:00

33 lines
696 B
Lua
Raw Normal View History

2019-03-14 04:25:54 +01:00
local event = require 'utils.event'
local function send_near_biter_to_silo()
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
local function on_tick(event)
end
event.add(defines.events.on_tick, on_tick)