[Klonan] [1.1] Support orientated lights on Projectile prototypes
Posted: Thu Aug 18, 2022 3:16 pm
At present an orientated light doesn't align to a projectiles orientation, it stays facing north.
The same light will align correctly to a projectile however for a rendered light using "rendering.draw_light()".
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()".