Types/AmmoType: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Updated to 0.16)
(Removed old prototype docs)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
==Basics==
<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/types/AmmoType.html https://lua-api.factorio.com/latest/types/AmmoType.html]
Definition of actual parameters used in attack.


== Mandatory properties ==
</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>
 
=== category ===
'''Type''': [[Types/string]]
 
Name of a [[Prototype/AmmoCategory]]. Defines whether the attack will be affected by upgrades.
 
== Optional properties ==
 
=== action ===
'''Type''': [[Types/Trigger]]
 
Describes actions taken upon attack happening.
 
=== clamp_position ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== energy_consumption ===
'''Type''': [[Types/Energy]]
 
=== range_modifier ===
'''Type''': [[Types/double]]
 
'''Default''': 1
 
=== cooldown_modifier ===
'''Type''': [[Types/double]]
 
'''Default''': 1
 
=== consumption_modifier ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== target_type ===
'''Type''': [[Types/string]]
 
'''Default''': "entity"
 
Either "entity", "position" or "direction". If this is "entity", <code>clamp_position</code> is forced to be false.

Latest revision as of 14:32, 25 October 2024

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/types/AmmoType.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.