Frictional Games Forum (read-only)

Full Version: Setting up red lights
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone!

Well, I've read an article about litting lamps an putting a connected light. Very useful, but here comes a question: How can I connect a point light with only red value when player crosses a script area? The article explains the extra light, but not how to make a one-value light.

Here's the article:
http://www.frictionalgames.com/forum/thread-18199.html
The FadeLightTo function:

FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);



asLightName = name of the light in the editor
afR/G/B/A = number value for red, green, blue & alpha (same as in the level editor, don't exceed "1.0f")
afRadius = The radius (if you want to keep it the same, make sure it's the same value as in the editor)
afTime = the time in seconds for the change to occur.

Hope that helped.