Prototype/ParticleSource: Difference between revisions
m (→Mandatory properties: particles aren't entities) |
(Updated styling of prototype doc migration note) |
||
(3 intermediate revisions by 2 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/ParticleSourcePrototype.html https://lua-api.factorio.com/latest/prototypes/ParticleSourcePrototype.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/Entity}} | {{Prototype parent|Prototype/Entity}} | ||
Creates particles. | Creates particles. | ||
Line 6: | Line 12: | ||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/Entity]]. | This prototype inherits all the properties from [[Prototype/Entity]]. | ||
{{Prototype property|time_to_live|[[Types/float|float]]}} | {{Prototype property|time_to_live|[[Types/float|float]]}} | ||
Line 21: | Line 24: | ||
== 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}} |
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/ParticleSourcePrototype.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/ParticleSource
Creates particles.
Mandatory properties
This prototype inherits all the properties from Prototype/Entity.
time_to_live
Type: float
time_before_start
Type: float
height
Type: float
vertical_speed
Type: float
horizontal_speed
Type: float
Optional properties
particle
Type: string
Name of a Prototype/Particle. Either this or smoke
must be defined.
smoke
Type: table of SmokeSource
Array of 1 or more smoke sources. Either this or particle
must be defined.
time_to_live_deviation
Type: float
Default: 0
time_before_start_deviation
Type: float
Default: 0
height_deviation
Type: float
Default: 0
vertical_speed_deviation
Type: float
Default: 0
horizontal_speed_deviation
Type: float
Default: 0