I'd like to add a spawner to the game that will produce biters that attack both the player and vanilla biters.
Is this the best/correct way to implement a new force? Control.lua:
Code: Select all
require("defines")
--
---------------------------------------------
function Load_Me()
game.create_force('vampire')
game.forces['vampire'].set_cease_fire('enemy', false)
game.forces['vampire'].set_cease_fire('player', false)
end
---------------------------------------------
script.on_init(Load_Me)
script.on_configuration_changed(Load_Me)
---------------------------------------------
Thanks.