Turrets with a liquid ammo?

Place to get help with not working mods / modding interface.
Post Reply
memcallen
Inserter
Inserter
Posts: 34
Joined: Sat Mar 28, 2015 1:22 am
Contact:

Turrets with a liquid ammo?

Post by memcallen »

I want to make a turret that runs on a liquid for ammo, instead of an item, but there isn't anything like

Code: Select all

ammo_item={basicitemstack}
that I might have been able to change to

Code: Select all

{type="fluid",name=...}
Any tips or tricks that I could use to make this work? Thanks

Koub
Global Moderator
Global Moderator
Posts: 7223
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Turrets with a liquid ammo?

Post by Koub »

Don't know if it's currently possible (it might, I just don't know), but with 0.13, it should definitely be, as the flame turrets are on their way :).
Koub - Please consider English is not my native language.

User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 253
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: Turrets with a liquid ammo?

Post by DedlySpyder »

Koub wrote:Don't know if it's currently possible (it might, I just don't know), but with 0.13, it should definitely be, as the flame turrets are on their way :).
Isn't flamethrower fuel in canisters though? Might just use that.

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Turrets with a liquid ammo?

Post by Adil »

I doubt they'd put this sophisticated stuff in if it is not used in vanilla.
Composite entities ahoy! (example)
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.

memcallen
Inserter
Inserter
Posts: 34
Joined: Sat Mar 28, 2015 1:22 am
Contact:

Re: Turrets with a liquid ammo?

Post by memcallen »

Can a turret (or any entity, really) have a fluidbox? If so, I can just make a dummy ammo that the player can't pick up through a control script.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Turrets with a liquid ammo?

Post by bobingabout »

Most entities can have a fluid box (EG, a furnace can, even though there is no such example in the base game of a furnace with a fluid box), I don't know if a gun turret can.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

ncc1702
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sat Apr 16, 2016 1:10 am
Contact:

Re: Turrets with a liquid ammo?

Post by ncc1702 »

If it's possible you could add an invisible assembler that crafts a dummy ammo so that your input is a fluid and the dummy ammo is what is outputted and consumed by the turret.

Post Reply

Return to “Modding help”