Re: how to make lights that turn of shoot them?
Posted by SVIN on
Wed Jan 19th 2005 at 8:21pm
SVIN
super banned
52 posts
15 snarkmarks
Registered:
Jan 10th 2005
Occupation: stockholm
Location: sweden
how to make lights that turn of shoot them? i mean like street lamps that brakes (i dont want so if u shoot again the light comes again)
Re: how to make lights that turn of shoot them?
Posted by Neural Scan on
Wed Jan 19th 2005 at 9:06pm
150 posts
85 snarkmarks
Registered:
Jun 28th 2003
Occupation: Student
Location: England.
It's the same process as hl1 (you need a func_breakable and a light), but instead of targetting other entities you use the Input/Output system. My guess is you create and input on the breakable (something like On Break, there'll be a list of stuff) which targets the light. The output is then chosen (Turn Off will probably be listed).
I haven't looked much at it, but the Input/Output system is actually very simple, it only took me a minute to see how it worked. There's always tutorials though (I think there's one right here on Snarkpit).
Have fun.
Re: how to make lights that turn of shoot them?
Posted by dabait on
Wed Jan 19th 2005 at 9:08pm
15 posts
2 snarkmarks
Registered:
Dec 28th 2004
Quite right! The 'input' and 'output' aspects of the HL2 entity system had slipped my mind! Big improvement!
Re: how to make lights that turn of shoot them?
Posted by Dred_furst on
Wed Jan 19th 2005 at 9:16pm
455 posts
135 snarkmarks
Registered:
Sep 3rd 2003
Location: UK
Indeed, also looks cooler with a swinging light,
Re: how to make lights that turn of shoot them?
Posted by Nasher on
Wed Jan 19th 2005 at 9:34pm
12 posts
1 snarkmarks
Registered:
Dec 2nd 2004
Occupation: oddjob
Location: UK
Try an invisible func_button with "damage activates" ticked over the light you want to shoot, then just add the light into the output etc.
Re: how to make lights that turn of shoot them?
Posted by Leperous on
Wed Jan 19th 2005 at 11:01pm
Posted
2005-01-19 11:01pm
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
Why bother with an env_render, just Kill the sprite!