Flamethrower turret ammo

Place to get help with not working mods / modding interface.
Post Reply
Frontrider
Burner Inserter
Burner Inserter
Posts: 7
Joined: Wed Jun 14, 2017 8:41 am
Contact:

Flamethrower turret ammo

Post by Frontrider »

I would like to add a new fluid to the flamethrower turret as ammo.
How can I do this whitout copying everything out of original entity? If I only include a few field than it will tell me that the rest is missing.

I also have a research related to it, if I can do it from there thats good enough.

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Flamethrower turret ammo

Post by prg »

Code: Select all

table.insert(data.raw["fluid-turret"]["flamethrower-turret"].attack_parameters.fluids, {type="water", damage_modifier=20})
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Post Reply

Return to “Modding help”