Help for mapping

darkhead_

2008-06-03 01:30:25

Hey Guys =D

I'm working on a map and I need some helps.

I've just made a tunnel like this one in lock and I'd like the map to display a red light when someone is in (this light can appear at X area like a normal light) and a green light when nobody is in.

I know I have to use Trigger etc but I have no idea that how to do it...

If someone can help me... =D

darkhead_

Swot

2008-06-04 14:27:03

you know i/o system of source?

the problem is.. changing a lights (I am talking about a real light source, not a texture or sprite) color during runtime can only be made when using a light_dynamic.

I never put one of them in my maps cause they sometimes have a strange behaviour. just try, maybe this thing works, didn't try it out.

get a light_dynamic (set green color and the name "status_light" for example) and a trigger_multiple - add two outputs (color)

somthing like:
OnStartTouchAll -> status_light -> color -> "values for red color"
OnEndTouchAll -> status_light -> color -> "values for green color"

darkhead_

2008-06-04 19:10:11

For the light, I mean something like on lockdown 200Charger =)

Thanks, I'll try what you said. :)

Swot

2008-06-04 19:32:32

thats a simple light_spot with a sprite, both are only triggered on/off, just check it out by yourself. (lockdown.vmf is part of source sdk afaik)