Is it possible to attract biters to a point?
Build something that will attract all biters in a radius to that point?
Or on a certain event have biters attack.
Thanks.
Alien Attractor
Re: Alien Attractor
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: Alien Attractor
Thanks, I'll check it out.
Re: Alien Attractor
Okay, so this is working great in my mod:
but I do want to make a change. currently the command is to attack the player.
I'd like to have the biters attached the rocket-silo. I know this is possibly, by first getting the coordinates of the rocket-silo and then directing the alien to attack there.
Can someone maybe please help with that code?
Code: Select all
if event.created_entity.name == "rocket-silo" then
game.get_surface(1).set_multi_command({type=defines.command.attack,target=game.player.character,distraction=defines.distraction.none},2000)
I'd like to have the biters attached the rocket-silo. I know this is possibly, by first getting the coordinates of the rocket-silo and then directing the alien to attack there.
Can someone maybe please help with that code?
Re: Alien Attractor
Did you try target=event.created_entity?
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!