Page 1 of 1

Turrets with a liquid ammo?

Posted: Sun May 08, 2016 1:49 am
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

Re: Turrets with a liquid ammo?

Posted: Sun May 08, 2016 7:26 am
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 :).

Re: Turrets with a liquid ammo?

Posted: Mon May 09, 2016 2:47 pm
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.

Re: Turrets with a liquid ammo?

Posted: Mon May 09, 2016 4:20 pm
by Adil
I doubt they'd put this sophisticated stuff in if it is not used in vanilla.
Composite entities ahoy! (example)

Re: Turrets with a liquid ammo?

Posted: Wed May 11, 2016 1:50 pm
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.

Re: Turrets with a liquid ammo?

Posted: Thu May 12, 2016 8:01 am
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.

Re: Turrets with a liquid ammo?

Posted: Mon May 23, 2016 6:24 pm
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.