Code: Select all
data.raw["projectile"]["rocket"].light = {
type = "oriented",
picture = {
filename = "__core__/graphics/light-cone.png",
priority = "extra-high",
flags = { "light" },
scale = 2,
width = 200,
height = 200
},
intensity = 0.6,
size = 1,
minimum_darkness = 0.3,
}
The same light will align correctly to a projectile however for a rendered light using "rendering.draw_light()".