Page 1 of 1
Changing Light Colour
Posted: Fri Aug 01, 2003 10:30 am
by Bilko
Right, I've made a script/model as my light and it works fine, however, I've discovered that it shines through walls. Is there a way to change the colour of a normal light when a switch is triggered? Ive tried "$real_lights.color 1 0 0" and "$real_lights color 1 0 0" but with no success. Any ideas?
Bilko.
Posted: Fri Aug 01, 2003 10:41 am
by jv_map
Try
$real_lights lightRed (value 0 to 1)
$real_lights lightGreen (value 0 to 1)
$real_lights lightBlue (value 0 to 1)
Posted: Fri Aug 01, 2003 1:11 pm
by Bilko
no, no luck. I read somewhere that lights aren't entities, could it be that you can't assign a light a targetname?
Bilko.
Posted: Fri Aug 01, 2003 1:38 pm
by Serph
are you saying that the light goes through your walls?
if I'm right can't you just use sunblock?
Posted: Fri Aug 01, 2003 1:54 pm
by jv_map
You can't change the color of a point light (the one you place in Radiant) dynamically. This is because lightmaps are precompiled

.
I thought you were talking about dynamic lights

Posted: Fri Aug 01, 2003 1:56 pm
by Bilko
Ahh, ok. Different way of looking at the problem. Is there a way to stop dynamic lights shining through walls or are we back to 'the wall doesn't know it's a light' etc?
Bilko.
ps. can u at least hide them, or not?
Posted: Fri Aug 01, 2003 2:14 pm
by jv_map
A dynamic light can be 'hidden' with the lightOff command.
Example:
$light lightOff
Posted: Fri Aug 01, 2003 3:12 pm
by Bilko
Sorry, I meant normal lights then, shoulda said. Anyway, seems impossible so I'll give up.
Thanks for your help JV.
Bilko.
Posted: Fri Aug 01, 2003 4:51 pm
by SlasherZ
normal light color can be changed by key: color
Posted: Fri Aug 01, 2003 5:10 pm
by Bilko
I mean in-game.
Bilko.