Prototype/ParticleSource: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (→‎Mandatory properties: particles aren't entities)
(1.0.0: particle is now optional, added smoke property)
Line 6: Line 6:
== Mandatory properties ==
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Entity]].
This prototype inherits all the properties from [[Prototype/Entity]].
{{Prototype property|particle|[[Types/string|string]]}}
Name of a [[Prototype/Particle]].


{{Prototype property|time_to_live|[[Types/float|float]]}}
{{Prototype property|time_to_live|[[Types/float|float]]}}
Line 21: Line 18:


== Optional properties ==
== Optional properties ==
{{Prototype property|particle|[[Types/string|string]]|optional=true}}
Name of a [[Prototype/Particle]]. Either this or <code>smoke</code> must be defined.
{{Prototype property|smoke|[[Types/table|table]] of [[Types/SmokeSource|SmokeSource]]|optional=true}}
Array of 1 or more smoke sources. Either this or <code>particle</code> must be defined.


{{Prototype property|time_to_live_deviation|[[Types/float|float]]|0|optional=true}}
{{Prototype property|time_to_live_deviation|[[Types/float|float]]|0|optional=true}}

Revision as of 11:31, 8 September 2020