Page 1 of 1

Turn Off Lights after complete objective ???

Posted: Mon Sep 19, 2005 2:23 pm
by mcunha98
Hi,

I make a map with the objective: destroy a energy generator.
When the objective is completed, how i turn of lights and coronas in the map ?

I put for example a targetname into a light: "mylight1" and corona: "mycorona1".

Some idea how i turn off the light and hide the corona ?????? :(

Posted: Mon Sep 19, 2005 2:48 pm
by Green Beret
$mylight1 light 0 0 0 0
$mycorona1 hide

Posted: Mon Sep 19, 2005 3:27 pm
by mcunha98
Green Beret wrote:$mylight1 light 0 0 0 0
$mycorona1 hide
AHA !!!!!
Ok, i will try this solution and post a reply if works !

Thank very mutch

Posted: Wed Sep 21, 2005 1:41 am
by mcunha98
Dont work !

I put the targetname only in light - dont work
I put the targetname and #set for group (1 in my case) - dont work

The debugger in console show messages of error, what is the problem ???

Image

Posted: Wed Sep 21, 2005 3:35 am
by Green Beret
Sorry, I thought you wanted this for script side, Your doing this through Radiant.
Would probally be alot easier to script it. 8-)

Posted: Wed Sep 21, 2005 6:06 am
by bdbodger
The light from light entities you add in radiant get compiled into the bsp they can't be changed after you compile your map . Green Beret is right you have to use dynamic lights by setting the light key on a model like fx/dummy.tik those type of lights can shine though walls if you set the radius too high though because they are not compiled they are spawned . This test map I made uses dynamic lights to simulate a traffic light . The pak has the .map in it if you want to look at that .

bdb_traffic_light.pk3

Image
Image

Posted: Wed Sep 21, 2005 6:08 pm
by mcunha98
bdbodger

Thanks, i download your pk3 and see more later.

Thanks again !!!!