Page 1 of 1

[Klonan] [1.1] Support orientated lights on Projectile prototypes

Posted: Thu Aug 18, 2022 3:16 pm
by Muppet9010
At present an orientated light doesn't align to a projectiles orientation, it stays facing north.

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()".

Re: [Klonan] [1.1] Support orientated lights on Projectile prototypes

Posted: Sat Dec 17, 2022 11:06 am
by Klonan
Thanks for the report,

It is fixed for the next release