Lighting:General

From Custom Map Makers Wiki
Revision as of 11:54, 3 September 2011 by Rylius (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Info.png You have to compile your map with the -light option to see any effects.


How to add a light

Press the right mouse button inside the 2D window and choose "light". You'll be asked for an intensity. You can change it later by selecting the light entity and pressing "n".

How to make a colored light

Select the light entity and press "k". This will open a color selection dialog.

How to create point lights

Create a new light entity as described above. Create an info_null entity as a target for the light. Deselect the entity, select the light and select the info_null again. Then press Control-K to connect the light to the entity.

Error.png Don't use target_position entities as targets. These entities stay ingame which is not needed for lights.