Prototype/Explosion: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Set prototype parent)
(Converted to SMW format)
Line 1: Line 1:
{{Prototype parent|Prototype/Entity}}
{{Prototype parent|Prototype/Entity}}
Used to play an animation and a sound.


== Basics ==
{{Prototype TOC|explosion}}
Prototype type: '''explosion'''
 
Extends [[Prototype/Entity]].


== Extensions ==
== Extensions ==
Line 12: Line 10:
This prototype inherits all the properties from [[Prototype/Entity]].
This prototype inherits all the properties from [[Prototype/Entity]].


=== animations ===
{{Prototype property|animations|[[Types/AnimationVariations|AnimationVariations]]}}
'''Type''': [[Types/AnimationVariations]]
 
Must have at least 1 animation frame.
Must have at least 1 animation frame.


== Optional properties ==
== Optional properties ==


=== sound ===
{{Prototype property|sound|[[Types/Sound|Sound]]|optional=true}}
'''Type''': [[Types/Sound]]


=== rotate ===
{{Prototype property|rotate|[[Types/bool|bool]]|false|optional=true}}
'''Type''': [[Types/bool]]


'''Default''': false
{{Prototype property|beam|[[Types/bool|bool]]|false|optional=true}}


=== beam ===
{{Prototype property|height|[[Types/float|float]]|1|optional=true}}
'''Type''': [[Types/bool]]


'''Default''': false
{{Prototype property|correct_rotation|[[Types/bool|bool]]|false|optional=true}}
 
=== height ===
'''Type''': [[Types/float]]
 
'''Default''': 1
 
=== correct_rotation ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== smoke ===
'''Type''': [[Types/string]]


{{Prototype property|smoke|[[Types/string|string]]|optional=true}}
Name of a trivial-smoke prototype. Mandatory if <code>smoke_count</code> > 0.
Name of a trivial-smoke prototype. Mandatory if <code>smoke_count</code> > 0.


=== smoke_count ===
{{Prototype property|smoke_count|[[Types/uint16|uint16]]|0|optional=true}}
'''Type''': [[Types/uint16]]
 
'''Default''': 0
 
=== smoke_slow_down_factor ===
'''Type''': [[Types/float]]


'''Default''': 0
{{Prototype property|smoke_slow_down_factor|[[Types/float|float]]|0|optional=true}}


=== light ===
{{Prototype property|light|[[Types/LightDefinition|LightDefinition]]|optional=true}}
'''Type''': [[Types/LightDefinition]]

Revision as of 21:05, 5 August 2019

Template:Prototype parent Used to play an animation and a sound.

Template:Prototype TOC

Extensions

Mandatory properties

This prototype inherits all the properties from Prototype/Entity.

Template:Prototype property Must have at least 1 animation frame.

Optional properties

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property Name of a trivial-smoke prototype. Mandatory if smoke_count > 0.

Template:Prototype property

Template:Prototype property

Template:Prototype property