Frictional Games Forum (read-only)
Inactive lights emitting light - 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: Inactive lights emitting light (/thread-20897.html)

Pages: 1 2


RE: Inactive lights emitting light - eagledude4 - 03-24-2013

Can I ask you to be more specific? Tongue


RE: Inactive lights emitting light - PutraenusAlivius - 03-24-2013

(03-24-2013, 07:41 AM)eagledude4 Wrote: Can I ask you to be more specific? Tongue
How to make a script text for maps
1. Make a new text document.
2. Change the extension to .hps
3. Make sure the name of your hps and map file are the same.
4. Notepad or some other text documents WILL not recognize it. Use a default program to open it.
-----
Now, begin scripting!


RE: Inactive lights emitting light - eagledude4 - 03-24-2013

I already have a script file, and the correct functions for activating the point lights. I was trying to ask for more detail on how to use the callbackfunc box in the editor to run a the below function:

Code:
void cornerlight(string &in asEntity, string &in OnIgnite) {
    SetLightVisible("hallway_light", true);
}

I want to avoid having a SetEntityCallbackFunc for each light in the script file itself. AKA Get rid of:
Code:
SetEntityCallbackFunc("candlestick_wall_5", "cornerlight");
SetEntityCallbackFunc("candlestick_wall_6", "cornerlight");

Sorry for being unclear.


RE: Inactive lights emitting light - NaxEla - 03-24-2013

Mini tutorial for connecting lights Big Grin:

You do not need to set the light inactive in neither the level editor, nor in the script.

Set the point light colour to black (0, 0, 0), and write the point light name where it says ConnectedLight in the candle properties.
Spoiler below!

The ConnectionLightAmount is the amount the pointlight will change when the candle is lit. It takes the colour of the candles light, multiplies it by the amount (in this case 0.3), then adds that to the point light. So if you want a candle to significantly increase the point lights colour, then you would put in a high value.
Spoiler below!

For the smaller candle, I put a lower ConnectionLightAmount.
Spoiler below!



RE: Inactive lights emitting light - eagledude4 - 03-24-2013

OH. Now I see what you guys meant by setting it to black. Thanks a lot, now my script is half the size Tongue