Frictional Games Forum (read-only)
Light a lamp - 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 Articles (https://www.frictionalgames.com/forum/forum-40.html)
+---- Thread: Light a lamp (/thread-18199.html)



Light a lamp - GoranGaming - 09-07-2012

I am going to teach you how to make a pointlight go active when you light a lamp/candle entity.

This is my first tutorial so I would like you to leave feedback if you have time. Thanks! Smile

First:

Create a lamp (or whatever you want to call it.)

You can find all lamp entites under: entites>lamp


Name the lamp whatever you want.


Spoiler below!


Second:


Go to the "Entity Settings".

Make sure you uncheck the "Lit" box. (You don't need to, but if you want the player to light the lamp, do so.)

Create a pointlight.

Spoiler below!

Name it whatever you want. Make sure you resize the light. By default the size is 1.
I resized mine to 3.5.

Spoiler below!


Write the name of your pointlight in the "Connected Light" in the lamp entity you placed earlier. In this case, it is called "PointLight_1".

Spoiler below!

Third:


Change the color of your light to:

R: 0
G: 0
B: 0
A: 0

This means that the light won't have any color and will be invisible until you light the lamp.

Spoiler below!


Hope this helped someone Smile

As I said, leave feedback!


RE: Light a lamp - GoranGaming - 09-07-2012

I do not know, I will try it out now Smile

Yes, it does work with spotlights, however, you cannot use it with multiple lights Smile


RE: Light a lamp - Zaffre - 09-08-2012

Thanks for the information. I never understood how those worked.


RE: Light a lamp - GoranGaming - 09-08-2012

(09-08-2012, 02:05 PM)Zaffre Wrote: Thanks for the information. I never understood how those worked.
No problem Smile