Light switches

AH_Viper

Spy
Joined
Jul 20, 2003
Messages
605
Reaction score
0
Any know how to make light switches?

I'm new to mapping and can do the basics but now im looking to add a bit of interactivity to my map.

Also, how would I go about making a light be able to be shot out? I know it can be done just not how :( (P.S. doesnt have to be the same light that can be switched if that would be problematic)
 
Im new to hammer also, but starting to figure these things out. Unluckily im not gonna get mapping until sunday/monday, depends on hangover after weekend. :rolling:

But, i think that shooting lights can be done somehow with parenting light to some model (lamp) which can be destroyed, linked somehow that when model is destroyed it kills light entity... that my guess, and im gonna give it a try. But if someone figures it out, please post it here :)
 
Yeah, I had managed to work that out the logic in my head just not how to do it :)

Oh yeah, also I dont want the entire light to be destoryed when I shoot it, just for it to go out...
 
For a light switch: You could tie the part of the light switch you want to move to a momentary_rot_button entity, check the "Toggle" and "Use Activates" flags, and make the OnIn and OnOut (the up/down on/off positions of the switch itself) outputs trigger the appropriate TurnOff or TurnOn action for the corresponding light(s).

For a light that turns off permanently when shot: You could make an invisible (by applying the texture that says "INVISIBLE" on it) brush covering the part you want to allow to be shot, tie it to a func_breakable entity with a very low amount of health (also disable casting and receiving shadows for the func_breakable), give it an OnBreak output that triggers a kill action on the corresponding light.

EDIT: I haven't actually tried either of those ideas (because I haven't had the need for them in any maps yet) but they should work.
 
Woot, solved the second problem (that was the one i really trying to get to work ;) )

1)Make a light brush
2)Make a light entity - name it light
3)Make a brush infront of the light brush and texture it INVISIBLE - name it break
4)Make break a func_breakable entity
4)On output tab in object parameters or break:
5)Press Add then change
My Ouput Named : OnBreak
Target Entity Named: light
Via this input : TurnOff

Anything else is just extra :)
 
AH_Viper said:
Woot, solved the second problem (that was the one i really trying to get to work ;) )

1)Make a light brush
2)Make a light entity - name it light
3)Make a brush infront of the light brush and texture it INVISIBLE - name it break
4)Make break a func_breakable entity
4)On output tab in object parameters or break:
5)Press Add then change
My Ouput Named : OnBreak
Target Entity Named: light
Via this input : TurnOff

Anything else is just extra :)


i dont understand the begining of that. whats a light brush?
 
Oh sorry, just make a light prop. Something that looks like a light :)
 
:rolling: oh hehe sorry, im a noob to this mappin shizza :laugh:

hey btw, is there already made lights where u can just select em and put em in or do u have to make em...

EDIT: nvm i found em :(
 
Ach, one problem I have that I haven't been able to solve is that the texture for the light seems to glow bright white even in the dark.... even with no lght on it?

Anyone know why?
 
Back
Top