Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Light a lamp
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#1
Light a lamp

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.




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.


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



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".


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.



Hope this helped someone Smile

As I said, leave feedback!

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
09-07-2012, 05:00 PM
Website Find
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#2
RE: Light a lamp

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

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
(This post was last modified: 09-07-2012, 09:06 PM by GoranGaming.)
09-07-2012, 08:58 PM
Website Find
Zaffre Away
Posting Freak

Posts: 867
Threads: 50
Joined: Jul 2012
Reputation: 30
#3
RE: Light a lamp

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

As of September 2nd, 2014, I've left the Frictional forums. Check my profile for more details.
(This post was last modified: 09-08-2012, 02:05 PM by Zaffre.)
09-08-2012, 02:05 PM
Find
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#4
RE: Light a lamp

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

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
09-08-2012, 02:43 PM
Website Find




Users browsing this thread: 2 Guest(s)