Change number of combat robots created

Place to get help with not working mods / modding interface.
starelf
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon Nov 17, 2014 4:44 am
Contact:

Change number of combat robots created

Post by starelf »

Hi, I've been trying to create a different combat robot, but I can't find anywhere to change the number created or whether it follows the combat robot limit (distractor robots don't, others do)
Is this just not possible? would I have to re-create the combat robot functionality in lua? I've looked through projectiles.lua, entities.lua, and capsules.lua. Thanks.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3731
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Change number of combat robots created

Post by DaveMcW »

Edit the "offsets" array in projectiles.lua.
starelf
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon Nov 17, 2014 4:44 am
Contact:

Re: Change number of combat robots created

Post by starelf »

DaveMcW wrote:Edit the "offsets" array in projectiles.lua.
Thanks, any way to change if it follows the limit or not? I can't find it in any file but distractors don't and others do.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Change number of combat robots created

Post by prg »

starelf wrote:Thanks, any way to change if it follows the limit or not? I can't find it in any file but distractors don't and others do.
follows_player=true|false in the entity definition.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
starelf
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon Nov 17, 2014 4:44 am
Contact:

Re: Change number of combat robots created

Post by starelf »

prg wrote:
starelf wrote:Thanks, any way to change if it follows the limit or not? I can't find it in any file but distractors don't and others do.
follows_player=true|false in the entity definition.
I want it to still follow the player, but not follow the max combat robot limit, is there any way to do that?
Post Reply

Return to “Modding help”