Prototype/Explosion: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.18.35: render_layer added)
(Removed old prototype docs)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Prototype parent|Prototype/Entity}}
<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/ExplosionPrototype.html https://lua-api.factorio.com/latest/prototypes/ExplosionPrototype.html]
Used to play an animation and a sound.


{{Prototype TOC|explosion}}
</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>
 
== Extensions ==
* [[Prototype/FlameThrowerExplosion]] '''flame-thrower-explosion'''
 
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Entity]].
 
{{Prototype property|animations|[[Types/AnimationVariations|AnimationVariations]]}}
Must have at least 1 animation frame.
 
== Optional properties ==
 
{{Prototype property|sound|[[Types/Sound|Sound]]|optional=true}}
 
{{Prototype property|smoke|[[Types/string|string]]|optional=true}}
Name of a trivial-smoke prototype. Mandatory if <code>smoke_count</code> > 0.
 
{{Prototype property|height|[[Types/float|float]]|1|optional=true}}
 
{{Prototype property|smoke_slow_down_factor|[[Types/float|float]]|0|optional=true}}
 
{{Prototype property|smoke_count|[[Types/uint16|uint16]]|0|optional=true}}
 
{{Prototype property|rotate|[[Types/bool|bool]]|false|optional=true}}
 
{{Prototype property|beam|[[Types/bool|bool]]|false|optional=true}}
 
{{Prototype property|correct_rotation|[[Types/bool|bool]]|false|optional=true}}
 
{{Prototype property|render_layer|[[Types/RenderLayer|RenderLayer]]|"explosion"|optional=true}}
 
{{Prototype property|light|[[Types/LightDefinition|LightDefinition]]|optional=true}}

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/prototypes/ExplosionPrototype.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.