Prototype/Explosion: Difference between revisions
Jump to navigation
Jump to search
Muppet9010 (talk | contribs) (sound isn't a mandatory property) |
Muppet9010 (talk | contribs) (animation is mandatory and the game errors on startup for an explosion without one) |
||
Line 9: | Line 9: | ||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/Entity]]. | This prototype inherits all the properties from [[Prototype/Entity]]. | ||
=== animations === | |||
'''Type''': [[Types/AnimationVariations]] | |||
Must have at least 1 animation frame. | |||
== Optional properties == | == Optional properties == | ||
Line 14: | Line 19: | ||
=== sound === | === sound === | ||
'''Type''': [[Types/Sound]] | '''Type''': [[Types/Sound]] | ||
=== rotate === | === rotate === |
Revision as of 22:53, 5 July 2019
Basics
Prototype type: explosion
Extends Prototype/Entity.
Extensions
- Prototype/FlameThrowerExplosion flame-thrower-explosion
Mandatory properties
This prototype inherits all the properties from Prototype/Entity.
animations
Type: Types/AnimationVariations
Must have at least 1 animation frame.
Optional properties
sound
Type: Types/Sound
rotate
Type: Types/bool
Default: false
beam
Type: Types/bool
Default: false
height
Type: Types/float
Default: 1
correct_rotation
Type: Types/bool
Default: false
smoke
Type: Types/string
Name of a trivial-smoke prototype. Mandatory if smoke_count
> 0.
smoke_count
Type: Types/uint16
Default: 0
smoke_slow_down_factor
Type: Types/float
Default: 0
light
Type: Types/LightDefinition