I'd like to implement a 'swarm' of nearby biters when a spawner is killed.
So upon death run the code:
Code: Select all
game.player.surface.set_multi_command({type=defines.command.attack,target=game.player.character,distraction=defines.distraction.by_enemy},10)
The evolution factor increases on destroying a spawner, so there must be a way to detect it.
Also, where would I implement it?
Something like this:
Code: Select all
game.on_event(defines.events.[color=#FF0000]xxx[/color], function(event)
game.player.surface.set_multi_command({type=defines.command.attack,target=game.player.character,distraction=defines.distraction.by_enemy},10)
end)