Page 1 of 1

[Solved]How to create smoke?

Posted: Wed Feb 06, 2019 6:45 pm
by WIZ4
I want to create smoke, the same as shown in the trailer, how can I do it? I tried to create other types of smoke(light-smoke,turbine-smoke,smoke-building), but I got errors 'unknown entity name'. However, the creation of other effects, such as fire or gray blood does not cause errors.
game.surfaces[1].create_entity{name="fire-flame", position={0,0}}
smoke.gif
smoke.gif (8.8 MiB) Viewed 1446 times

Re: How to create smoke?

Posted: Wed Feb 06, 2019 7:07 pm
by Bilka
Most of the smoke in the game is not an entity, it is "trivial smoke". It can be created with https://lua-api.factorio.com/latest/Lua ... vial_smoke.

For a list of trivial smoke prototypes, see https://wiki.factorio.com/Data.raw#trivial-smoke.

Re: How to create smoke?

Posted: Thu Feb 07, 2019 12:05 pm
by WIZ4
Thanks, Bilka!