Prototype/FluidTurret: Difference between revisions
(→Mandatory properties: activation_buffer_ratio description) |
(Updated styling of prototype doc migration note) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/FluidTurretPrototype.html https://lua-api.factorio.com/latest/prototypes/FluidTurretPrototype.html] | |||
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div> | |||
{{Prototype parent|Prototype/Turret}} | {{Prototype parent|Prototype/Turret}} | ||
A turret that consumes fluid as ammo. | A turret that consumes fluid as ammo. | ||
Line 12: | Line 18: | ||
{{Prototype property|activation_buffer_ratio|[[Types/float|float]]}} | {{Prototype property|activation_buffer_ratio|[[Types/float|float]]}} | ||
Before an | Before an turret that is out of ammo is able to fire, the fluid_buffer_size must fill to this proportion. | ||
{{Prototype property|fluid_box|[[Types/FluidBox|FluidBox]]}} | {{Prototype property|fluid_box|[[Types/FluidBox|FluidBox]]}} |
Latest revision as of 10:43, 21 September 2023
The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/FluidTurretPrototype.html
This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Turret » Prototype/FluidTurret
A turret that consumes fluid as ammo.
Mandatory properties
This prototype inherits all the properties from Prototype/Turret.
fluid_buffer_size
Type: float
fluid_buffer_input_flow
Type: float
activation_buffer_ratio
Type: float
Before an turret that is out of ammo is able to fire, the fluid_buffer_size must fill to this proportion.
fluid_box
Type: FluidBox
Optional properties
muzzle_light
Type: LightDefinition
enough_fuel_indicator_light
Type: LightDefinition
not_enough_fuel_indicator_light
Type: LightDefinition
muzzle_animation
Type: Animation
folded_muzzle_animation_shift
Type: AnimatedVector
preparing_muzzle_animation_shift
Type: AnimatedVector
prepared_muzzle_animation_shift
Type: AnimatedVector
starting_attack_muzzle_animation_shift
Type: AnimatedVector
attacking_muzzle_animation_shift
Type: AnimatedVector
ending_attack_muzzle_animation_shift
Type: AnimatedVector
folding_muzzle_animation_shift
Type: AnimatedVector
enough_fuel_indicator_picture
Type: Sprite4Way
not_enough_fuel_indicator_picture
Type: Sprite4Way
out_of_ammo_alert_icon
Type: Sprite
Mandatory values
Fluid turret can have only stream attack parameters.
Fluid turret has to have turret_base_has_direction=true.