Prototype/ParticleSource: Difference between revisions
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|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}} |
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