[2.0.27] Light in StatelessVisualisation (example or docs)

Place to report issues and suggest improvements to the API documentation.
i142857
Burner Inserter
Burner Inserter
Posts: 13
Joined: Mon Nov 04, 2024 9:56 am
Contact:

[2.0.27] Light in StatelessVisualisation (example or docs)

Post by i142857 »

According to the StatelessVisualisation docs you can use it to make a light on an entity. There are no examples of this in base or space-age (that I can find) and no explanation in the docs on how that works. I'm trying to guess but it doesn't seem to be working. For instance adding this to a container-type entity does nothing:

Code: Select all

            stateless_visualisation = {
                {
                    -- This doesn't do anything but I have no idea why.
                    count = 1,
                    render_layer = "light-effect",
                    light = {
                        intensity = 1.0,
                        size = 10.0,
                        color = { r = 0, g = 0, b = 1 },
                    },
                }
            }
How is one supposed to use this?
Post Reply

Return to “Documentation Improvement Requests”