[0.16.51] trivial-smoke ignores "affected_by_wind_setting"
Posted: Thu Dec 27, 2018 12:17 am
The trivial-smoke seems to be affected by wind regardless of the "afffected_by_wind" data prototype attribute being set to false.
With the below code in data.lua
When you then create this trivial smoke the animation moves off centre in random directions that appear to be the wind direction.
With the below code in data.lua
Code: Select all
data:extend({
{
type = "trivial-smoke",
name = "wheel-sparks",
animation = {
filename = "__base__/graphics/entity/sparks/sparks-01.png",
width = 39,
height = 34,
frame_count = 19,
line_length = 19,
shift = {-0.109375, 0.3125},
tint = { r = 1.0, g = 0.9, b = 0.0, a = 1.0 },
animation_speed = 0.3
},
duration = 19,
affected_by_wind = false,
show_when_smoke_off = true,
render_layer = "air-entity-info-icon"
}
})
Code: Select all
/c game.player.surface.create_trivial_smoke{name="wheel-sparks", position = {-2, -2}}