The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Light a lamp - by GoranGaming - 09-07-2012, 05:00 PM
RE: Light a lamp - by GoranGaming - 09-07-2012, 08:58 PM
RE: Light a lamp - by Zaffre - 09-08-2012, 02:05 PM
RE: Light a lamp - by GoranGaming - 09-08-2012, 02:43 PM



Users browsing this thread: 1 Guest(s)