Prototype/ParticleSource: Difference between revisions
Jump to navigation
Jump to search
(Set prototype parent) |
(1.0.0: particle is now optional, added smoke property) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/Entity}} | {{Prototype parent|Prototype/Entity}} | ||
Creates particles. | |||
{{Prototype TOC|particle-source}} | |||
Prototype | |||
== 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_before_start|[[Types/float|float]]}} | |||
{{Prototype property|height|[[Types/float|float]]}} | |||
{{Prototype property|vertical_speed|[[Types/float|float]]}} | |||
{{Prototype property|horizontal_speed|[[Types/float|float]]}} | |||
=== | == 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_before_start_deviation|[[Types/float|float]]|0|optional=true}} | |||
{{Prototype property|height_deviation|[[Types/float|float]]|0|optional=true}} | |||
{{Prototype property|vertical_speed_deviation|[[Types/float|float]]|0|optional=true}} | |||
{{Prototype property|horizontal_speed_deviation|[[Types/float|float]]|0|optional=true}} |
Latest revision as of 11:31, 8 September 2020
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