Lighting
So, my problem is: I have a room with lightning in it. In the room is a panel door as you can see that opens. When it's closed you don't notice there is one. When it's open the lighting is kind of fucked up. How can I get this fixed?
Also, if you look at the big door on the right the wall behind it is also bright, how can you make the light changes dynamically when you play?
Naamloos.png
You could either have the panel start open - so the light shines behind it - and add a logic_auto that closes it OnMapSpawn.
Or you could add another light behind the panel.
For more about lights and dynamic light sources, read this.
Better add another light behind the panel.
The way to get things done is not to mind who gets the credit for doing them.
Benjamin Jowett's survival knives
Now another one. I have a light_dynamic in my map and I want to change the Appearance when I run in a trigger_once field. I do OnTrigger mylight style 9. When I go ingame and I run in the trigger I get this error:> Quote:
!! light_dynamic(lightdraaien,style) doesn't match type from trigger_once()
I don't get what I'm doing wrong since I followed this page: https://developer.valvesoftware.com/wiki/Light_dynamic
If the light you want to change doesn't change it's position, use a normal light entity, give it a name and change it's pattern/style there.
Careful: More than 3 named lights shining on one surface causes bugs.
@Skotty: I might try to change the lights to normal ones again and see how my lighting turns out.
OnTrigger lightname SetPattern patternhere
Changing the light is more "difficult". You would need to place 3 lights in all colours (means 255 0 0, 0 255 0 and 0 0 255) and you will need to control their brightness via pattern to create all colours you want out of the three basic ones.