Skip to content

Enhancement: CLight::GetLightColor, CLight::GetLightBrightness, CLight::SetLightBrightness #1593

@HugoBDesigner

Description

@HugoBDesigner

What would this enhancement be for?

Scripting

Describe your enhancement suggestion in more detail

The CLight class has a SetLightColor function, which takes a vector as a color, and a float as a brightness. There should be a GetLightColor function which returns a vector with the light's current color.

Additionally, if possible, I'd leave the float argument from SetLightColor as optional, and implement two new functions: GetLightBrightness and SetLightBrightness, which return or receive a float, respectively.

This way, it's much easier to manipulate existing lights in the world.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Size 5: TrivialSomething that will take a couple minutes to do; a couple of lines to change.Type: EnhancementThis is something that improves upon an already existing thing.What: ScriptingAngelScript or VScript related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions