[LVL ED] Setting up red lights - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [LVL ED] Setting up red lights (/thread-18334.html) |
Setting up red lights - The chaser - 09-14-2012 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 RE: Setting up red lights - Adny - 09-14-2012 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. |