By RCON spawned Biter won´t attack
Posted: Wed Dec 07, 2022 9:09 am
Hey Guys!
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:
The spawning does work fine. The biters do attack any military unit (including the player), but if they happen to spawn in an area with production units only the just idle. And i just don´t understand why. I tried to force them into attackmode with
Sry for my bad english! Hope you get my point anyway
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