mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-24 03:47:58 +02:00
33 lines
696 B
Lua
33 lines
696 B
Lua
|
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)
|