Prototype/TrivialSmoke: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Converted to SMW format)
(0.18.10 (0.17.15): duration mandatory)
Line 8: Line 8:


{{Prototype property|animation|[[Types/Animation|Animation]]}}
{{Prototype property|animation|[[Types/Animation|Animation]]}}
{{Prototype property|duration|[[Types/uint32|uint32]]}}
Can't be 0 - the smoke will never render.


== Optional properties ==
== Optional properties ==
Line 21: Line 24:
{{Prototype property|movement_slow_down_factor|[[Types/double|double]]|0.995|optional=true}}
{{Prototype property|movement_slow_down_factor|[[Types/double|double]]|0.995|optional=true}}
Value between 0 and 1, with 1 being no movement.
Value between 0 and 1, with 1 being no movement.
{{Prototype property|duration|[[Types/uint32|uint32]]|0|optional=true}}
Smoke may not be <code>cyclic</code> = true if this is set to 0.


{{Prototype property|spread_duration|[[Types/uint32|uint32]]|0|optional=true}}
{{Prototype property|spread_duration|[[Types/uint32|uint32]]|0|optional=true}}
Line 36: Line 36:


{{Prototype property|cyclic|[[Types/bool|bool]]|false|optional=true}}
{{Prototype property|cyclic|[[Types/bool|bool]]|false|optional=true}}
Smoke must have a <code>duration</code> > 0 if this is set to true.


{{Prototype property|affected_by_wind|[[Types/bool|bool]]|true|optional=true}}
{{Prototype property|affected_by_wind|[[Types/bool|bool]]|true|optional=true}}

Revision as of 09:45, 5 March 2020

Template:Prototype parent Smoke, but it's not an entity for optimization purposes.

Template:Prototype TOC

Mandatory properties

This prototype inherits all the properties from PrototypeBase.

Template:Prototype property

Template:Prototype property Can't be 0 - the smoke will never render.

Optional properties

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property

Template:Prototype property Value between 0 and 1, with 1 being no movement.

Template:Prototype property

Template:Prototype property fade_in_duration + fade_away_duration must be <= duration.

Template:Prototype property fade_in_duration + fade_away_duration must be <= duration.

Template:Prototype property

Template:Prototype property

Template:Prototype property Smoke always moves randomly unless movement_slow_down_factor is 1. If affected_by_wind is true, the smoke will also be moved by wind.

Template:Prototype property

Template:Prototype property