Hi
I have a capsule shooting turret. and use create_entity{} (destroyer-capsule)
However, these capsules do not follow the turret.
If I want the capsule to follow the turret, do I have to make a group? Or is there another way?
Capsule robots that follow entity
Re: Capsule robots that follow entity
You create combat robot via surface.create_entity and specify its target during creation.
You can only set robots target during its creation.
Here's example from my old mod:
You can only set robots target during its creation.
Here's example from my old mod:
Code: Select all
local companion=ent.surface.create_entity{position=ent.position, name=robot_name, force=ent.force, target=ent}
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: Capsule robots that follow entity
Oh thank you.Adil wrote:You create combat robot via surface.create_entity and specify its target during creation.
You can only set robots target during its creation.
Here's example from my old mod:Code: Select all
local companion=ent.surface.create_entity{position=ent.position, name=robot_name, force=ent.force, target=ent}
But I don't control why robots not following with command...
I decided to copy it to "ammo" type capsules and use it.