(05-04-2013, 05:57 PM)FurtherGames Wrote: (05-04-2013, 05:47 PM)Robosprog Wrote: http://wiki.frictionalgames.com/hpl2/amn..._functions
Yeah... I used the "void SetLightVisible(string& asLightName, bool abVisible);" command, but it doesn't work.
Make sure you typed in in correctly. If it's still not working, try this:
Keep all the lights active with a radius of 0 and use this function to change the radius to what you want:
FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);
string& asLightName = "pointlight_whatever number yours is"
float afR = value you have on the red slider, with a decimal (eg 1.0f)
float afG = same as above but for green
float afB = same as above but for blue
float afA = same as above but for alpha
float afRadius = the you want your pointlight to change to (eg 3.0f)
float afTime = time, in seconds, for the change to take place (1.0f is 1 second)