Prototype/Explosion: Difference between revisions
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. | |||
{{Prototype TOC|explosion}} | |||
Prototype | |||
== Extensions == | == Extensions == | ||
Line 12: | Line 10: | ||
This prototype inherits all the properties from [[Prototype/Entity]]. | This prototype inherits all the properties from [[Prototype/Entity]]. | ||
{{Prototype property|animations|[[Types/AnimationVariations|AnimationVariations]]}} | |||
Must have at least 1 animation frame. | Must have at least 1 animation frame. | ||
== Optional properties == | == Optional properties == | ||
{{Prototype property|sound|[[Types/Sound|Sound]]|optional=true}} | |||
{{Prototype property|rotate|[[Types/bool|bool]]|false|optional=true}} | |||
{{Prototype property|beam|[[Types/bool|bool]]|false|optional=true}} | |||
{{Prototype property|height|[[Types/float|float]]|1|optional=true}} | |||
{{Prototype property|correct_rotation|[[Types/bool|bool]]|false|optional=true}} | |||
{{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. | ||
{{Prototype property|smoke_count|[[Types/uint16|uint16]]|0|optional=true}} | |||
{{Prototype property|smoke_slow_down_factor|[[Types/float|float]]|0|optional=true}} | |||
{{Prototype property|light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | |||
Revision as of 21:05, 5 August 2019
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/Explosion
Used to play an animation and a sound.
Extensions
- Prototype/FlameThrowerExplosion flame-thrower-explosion
Mandatory properties
This prototype inherits all the properties from Prototype/Entity.
animations
Type: AnimationVariations
Must have at least 1 animation frame.
Optional properties
sound
Type: Sound
rotate
Type: bool
Default: false
beam
Type: bool
Default: false
height
Type: float
Default: 1
correct_rotation
Type: bool
Default: false
smoke
Type: string
Name of a trivial-smoke prototype. Mandatory if smoke_count
> 0.
smoke_count
Type: uint16
Default: 0
smoke_slow_down_factor
Type: float
Default: 0
light
Type: LightDefinition