[dev] Light Intensity

Discussion in 'General Discussion' started by Ingwar, Jan 10, 2026 at 9:18 AM.

  1. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    109
    Likes Received:
    18
    Is it possible to change intensity of point or spot light?
     
  2. Oystein

    Oystein Well-Known Member

    Joined:
    May 24, 2018
    Messages:
    359
    Likes Received:
    336
    You can do that with a script. In this example there is a cab control that can be used to adjust the intensity.

    Code:
    local desklight = Call( "*:GetControlValue", "Desklight", 0 )
    local desklightint = Call( "*:GetControlValue", "Desklightint", 0 )
    local desklightcolor = {1.0,0.966,0.786}
    local desklightintensity = desklightint
    Call("Desklight:SetColour",desklightcolor[1]*desklightintensity,desklightcolor[2]*desklightintensity,desklightcolor[3]*desklightintensity)
    Call("Desklight:Activate", desklight);
    "Desklight" is the name of the child component in engine bp.

    https://www.christrains.com/tscdevd...e-function-reference.html#TOC-Light-Component
     
    • Helpful Helpful x 1
  3. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    278
    Likes Received:
    327
    Or if you meant a scenery item then you can do that in the properties flyout on the right-hand side - or in the blueprint if you want to create a set of them.IIRC
     
    • Like Like x 2
  4. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,801
    Likes Received:
    3,378
    One of the problems with the new Italian route is the signals are not very bright - it would be good to change the intensity
     
  5. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    109
    Likes Received:
    18
    Thank you, guys! Intensity is just a scale parameter for RGB values. Another undocumented feature!
     
  6. Maik Goltz

    Maik Goltz Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,213
    Likes Received:
    5,392
    It was documented in the later delivered docs for TS2014 and later as i remember.

    And be sure to not call the functions every frame when there is no change in the values. It could eat up performance a lot a fast when doing it on signals. Put in a compare functionality that only sets new values when needed.
     
    • Like Like x 2
  7. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    836
    Likes Received:
    681
    No need to. The developer is fixing that issue in the next update to the route.
     

Share This Page