I must admid that i have pretty much no idea about programming LUA. What i do is a little Python and I have a little Python-based Bot which interacts with my Factorio-Server by RCON.
I tried google for some hours now but just can´t find any solution. You guys probably will be able to help me.
I spawn some biters using this command:
Code: Select all
/sc local player = game.players['player']
local surface = player.surface for i = 1,10 do
local position = surface.find_non_colliding_position('small-biter', player.position, 100, 1)
if not position then rcon.print('') end
surface.create_entity{name = 'small-biter', position = {position.x+20, position.y+40}, force = game.forces.enemy} end
but after they killed me they started idle again instead of destroying my factory. How can i spawn them so that they go berserk and just destroy everthing?entity.set_command
Sry for my bad english! Hope you get my point anyway