Page 1 of 1

spawned light sometimes dispaer

Posted: Sun Feb 01, 2009 5:40 pm
by Aprop
I have big problem, my spawned light sometimes hides when i change player view angles...... how can i spawn working light, i need it for lightswitch...?

Posted: Sun Feb 01, 2009 10:55 pm
by Rookie One.pl
You mean a dynamic light? They're a bitch to work with, extremely buggy (they're a dirty hack anyway), you'll need a lot of luck to get it right.

Try setting the entity that emits the light to alwaysdraw.

Posted: Mon Feb 02, 2009 6:07 am
by Aprop
So my light-switch mod's dead?
Rookie One.pl wrote: Try setting the entity that emits the light to alwaysdraw.

I use script model dummy.tik, is that right?
How can i set entity to always drawn?
$smth surfaceparm alwaysdraw?
Or brush, by texture?

Posted: Tue Feb 03, 2009 7:32 am
by Rookie One.pl
I'm not saying it's dead, I'm saying you'll need a lot of luck to get it right. Try moving the light-emitting entity a couple of units each direction. Stupid little things like this often help with dynamic lights.

And yes, it's $ent alwaysdraw.

Posted: Tue Feb 03, 2009 1:45 pm
by Condor
You could create the lit up area twice as a script_object. One part, that is outside your level limits (not outside the world limits), is lit up by static lights while compiling the map, the other part is not lit up.
If you hit the lightswitch trigger, hide the dark script_object and move the lit up object to the place where the dark object was, if you turn off the light just reverse that process...

Posted: Tue Feb 03, 2009 4:13 pm
by Rookie One.pl
Yep, Condor here offered a very good solution to the problem. The other considerable pro is that you get high quality lighting (lightmaps).