We'll use this entity
to have a sound that plays every so often in your
level.
There could be a cool ass sound that you want
playing but don't want it to be playing constant,
here goes.
Somewhere in your map
create a func_timer entity by right clicking over
the grid and selecting it from the drop down menu.
Press escape to
deselect and place a target_speaker entity (read our
tutorial
on this if your stuck).
Now that you have the
sound that you want to play listed with the
target_speaker entity press escape again to deselect
everything, now comes the part where we will link
the two entities together.
First, select the
func_timer entity by pressing SHIFT + Left Click. do
the same again to select the target_speaker entity.
With both selected press CTRL + K and you should see
a line connecting the two entities together :)
Before we finish we
need to fill a few more values in for the func_timer
so select it and press N to get the entity
information up.
Check the start_on
box and then create these values
Key - random
Value - 6
Key - wait
Value - 20
These setting should
cause our sound to played every 20-30 seconds or so,
play around with the values to get the best effect
for you.