Solved Changing vehicle's light beam color depending on the car's color

Discussion in 'Mod Support' started by RyvyLo, Jul 2, 2016.

  1. RyvyLo

    RyvyLo
    Expand Collapse

    Joined:
    May 15, 2014
    Messages:
    438
    In a precedent question, I asked how to change lights textures. But now, I want to change the light beam colors so that they are the same as the car color.
    Picture of the intended result :
    screenshot_00153.png

    I though about making a lua script that will check the user-selected color and then change the value of the color in the jbeam, but I have no idea how to do it or if it's possible. If I knew how to get the user-selected color and how to modify a jbeam value I probably could make it, but I don't know if it's possible to do either of these actions.
     
  2. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    340
    • Like Like x 1
  3. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    340
    Addition:

    At least there is already a setConfig function within the partmgmt.lua. Now you 'just' need to find a function to read the corresponding data.

    Will update you, if I found a solution.
     
    • Like Like x 1
  4. RyvyLo

    RyvyLo
    Expand Collapse

    Joined:
    May 15, 2014
    Messages:
    438
    I have managed to get dynamic light beams using the same solution as @warkus
    Thank you, at least there is some progress, maybe this isn't as unrealizable as I first thought.
    I will continue searching for a solution too and keep you updated
     
    • Like Like x 1
  5. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    340
    Hey,

    how is it going?

    You somehow figured out how it works?
     
  6. RyvyLo

    RyvyLo
    Expand Collapse

    Joined:
    May 15, 2014
    Messages:
    438
    Sadly not, I'm kinda lost in the lua functions, it's hard to figure out what every function and variable mean. So I have kinda lost motivation on this side of the project. i think I'm gonna stick with the same solution as warkus for the moment until i regain enough motivation to start searching again
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice