Types/SmokeSource: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (Protected "Types/SmokeSource": Migrated prototype doc to separate website ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(Updated styling of prototype doc migration note)
Line 1: Line 1:
'''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 https://lua-api.factorio.com/latest/types/SmokeSource.html]
<div class="stub"><p>'''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 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 [https://forums.factorio.com/viewforum.php?f=233 on the forums].
</p><p>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 [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>





Revision as of 10:42, 21 September 2023

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.