Types/SmokeSource

From Official Factorio Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/SmokeSource.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.


Basics

Definition of the smoke of an entity.

Mandatory properties

name

Type: Types/string

Name of a Prototype/TrivialSmoke

frequency

Type: Types/double

Can't be negative, NaN or infinite.

Optional properties

offset

Type: Types/double

Default: 0

position

Type: Types/vector

north_position

Type: Types/vector

east_position

Type: Types/vector

south_position

Type: Types/vector

west_position

Type: Types/vector

deviation

Type: Types/Position

starting_frame_speed

Type: Types/uint16

Default: 0

starting_frame_speed_deviation

Type: Types/double

Default: 0

starting_frame

Type: Types/uint16

Default: 0

starting_frame_deviation

Type: Types/double

Default: 0

slow_down_factor

Type: Types/uint8

Default: 1

height

Type: Types/float

Default: 0

height_deviation

Type: Types/float

Default: 0

starting_vertical_speed

Type: Types/float

Default: 0

starting_vertical_speed_deviation

Type: Types/float

Default: 0

vertical_speed_slowdown

Type: Types/float

Default: 0.965

Value between 0 and 1.