Jump to content

ModuleLight - help needed- referencing multiple meshes in config


Recommended Posts

Is it possible to reference multiple light sources in config file or to add mulitple lights to one object? Sth like:

    MODULE    
    {
        name = ModuleLight
        lightName = light1 , light2
        useAnimationDim = True
        lightBrightenSpeed = 2.5
        lightDimSpeed = 2.5
        resourceAmount = 0.03
        animationName = lights
        useResources = True
    }

Link to comment
Share on other sites

2 minutes ago, L0ck0n said:

Thx, could u post here example how it should look like?

 

MODULE    
{
  name = ModuleLight
    lightName = light1
    useAnimationDim = True
    lightBrightenSpeed = 2.5
    lightDimSpeed = 2.5
    resourceAmount = 0.03
    animationName = lights
    useResources = True
    lightR = 1.0
    lightG = 1.0
    lightB = 1.0
  } 

this gives a normalized value of 1,1,1. ie: 1 = 255f. so White colour. 0,0,0 is black. and everything in between. just normalize the usual RGB values to between 0 and 1.

Link to comment
Share on other sites

18 minutes ago, JPLRepo said:

 



MODULE    
{
  name = ModuleLight
    lightName = light1
    useAnimationDim = True
    lightBrightenSpeed = 2.5
    lightDimSpeed = 2.5
    resourceAmount = 0.03
    animationName = lights
    useResources = True
    lightR = 1.0
    lightG = 1.0
    lightB = 1.0
  } 

this gives a normalized value of 1,1,1. ie: 1 = 255f. so White colour. 0,0,0 is black. and everything in between. just normalize the usual RGB values to between 0 and 1.

Sorry, , but for me its not working xD.

Tested on stock parts too, light color is not changing.

Edited by L0ck0n
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...