Create traffic lights
Jump to navigation
Jump to search
Traffic lights :) outputs and inputs
I think that you see in Half-Life 2 model of traffic lights? о_0 But it's simple model... Here I tell you how make a realy working lights.
What we need to make? о_0
- Model
props_c17\Traffic_Light001a.mdl
prop_dynamic
- color lights:
point_spotlight
s on each lights =).
- model properties:
- Disable Shadows=Yes
- Collide with world=Not solid (if you don't do this, light does not appear in game).
- one
logic_auto
, twologic_relay
.
In details...
Time. Traffic lights lights for different time. Because road can be wide and big, can be small. If road wide then lights lights longer.
Red and Green - 30 seconds
yellow - 3 sec
outputs!
1. give targetnames for each of 3 point_spotlight with names: "greenLight" "redLight" "YellowLight". 1 logic_relay call traffLightRelay1, 2 - traffLightRelay2.
2. select logic_auto
3. in outputs
My Output | Target Entity | Target Input | Parameter | Delay | Only Once | ||
---|---|---|---|---|---|---|---|
![]() |
OnMapSpawn | traffLightRelay1 | Trigger | 0.00 | Yes | Turn on this! :D |
4. Select traffLightRelay1
.
5. in outputs this:
6. Select traffLightRelay2
.
7. In Outputs:
It is all! ;).
--]{o$Tya 14:39, 24 May 2011 (UTC)