func_timer
A triggering entity that can be set to fire its targets at regular or random intervals. In this example, we'll make a malfunctioning light that randomly flicks on and off.
1.Firstly, create a good sized room (300x300x300) and place your info_player_start and a light in there. Give your light a "targetname" of "splash1". Also give it "spawnflags" of "1" for START_OFF.
2.Place a func_timer entity in the map, and give it a "target" of "splash1". The "wait" is how long between firing the target. "random" can be set to add variance to the firing (default is 0.) "delay" is the time before the first firing when turned on. "pausetime" is an initial delay if used with START_ON ("spawnflags" of "1").
3.Lets add a spark sound to the flickering light. Put a target_speaker entity in and also give it a "target" of "splash1". Be sure to set the "noise" to one of the spark sounds; we'll use "world/spark1.wav".
4.Compile your map and watch the light flicker on and off.
Here's a sample map showing the timer example.
Comments & Questions to
Quake Workshop